Simple commands Flashcards
pwd
Print current directory
cd
change directory
cd ..
go to home directory
~/
Move deeper
tab tab
watch deeper
tab
autocomplete
ls
list files and folders
clear
clear terminal
mv
move
touch
create file
mkdir
create folder
/*
all filestail
-p
recursion
tree
show tree view
rm
remove file
-r
recursive deleting
-f
force
cat
watch file inside
head
first 10 lines of the file
tail
last 10 lines of the file
tail -f
Monitor file editing
^C
invoke control back
grep
find inside the file
less
open visible part of file
man
open manual
which
find where command execution file lies
echo
show on screen
$
before variables
env
Show current session vars
>
writing into a file
reading from the file
sort
Sorting
uniq
show unique only
wc
word count (lines/words/symbols)
!!
repeat the last command
!555
repeat command number 555
history
show history of commands
~/.bash_history
Where the history lives
alias ***=’command’
Set alias
unalias ***
remove alias
type ***
show what is it