Ubuntu
Start works with linux - Ubuntu.
Main documentation: https://help.ubuntu.com/
How to install Ubuntu on VirtualBox
VirtualBoxFirst steps with terminal
#Shortcut to OPEN terminal
ctrl + alt + t
#Shortcut to CLOSE terminal
ctrl + d
#Kill the terminal proccess
cltr + c
#Auto completion of files names
use TAB while you are typing any name of fileShortcuts
Basic terminal commands
help
help command will help us how to use a parameters

man
manual page of commands (like help, but better graphical)

whatis
short description of linux commands

history
show history of commands used in terminal
the whole bash history is in file ~/.bash_history

pwd
print working directory

cd
change directory

echo
print a wrote text
gedit
graphical text editor
create a new file and start to edit
edit current file
nano
terminal text editor

cat / tac
show text in the same window of terminal

head / tail
head print first lines from the file
tail print the last lines from the file

wc
show line number , word number , byte/character numbers
ls
list a directory content




ln
Hard Link
the same inode number
the exactly same size of file

Soft Link
(it's the same as shortcut in windows)
different inode number
smaller file size - only 8 bites

Create soft link to directory is possible but hard link isn't.
Files commands
touch
change timestamp of a file on current date and time
create a new file


mkdir
create an empty directory
rmdir
remove an empty directory

remove not empty directory isn't possible
rm
remove a files and directories with files




cp
copy files
Be careful file could be overwrite !

mv
move files
renaming files

file
check properties and file extension

which / type
which -> print path to another command like cp / ls ... [display an Executable's location]
type -> print path to another command and show is this command is shell builtin
Types of commands: 1. Executable Programs 2. Shell builtins 3. Shell scripts 4. Alias

Filenames with space and special characters
Create file and directory with space or special characters
special characters like: $, >, <, &, ;, |, ', " ...


Own commands
multiple commands
use more than 1 command in one time

wildcards
'*' and '?'
wildcard is a symbol that represents one or more characters
symbol '*' represents (matches) ANY characters
symbol '?' represents (matches) a SINGLE character

'[RANGE]'

aliases
help to works faster with use specific own commands

Last updated
Was this helpful?