Simple commands Flashcards
(41 cards)
1
Q
pwd
A
Print current directory
2
Q
cd
A
change directory
3
Q
cd ..
A
go to home directory
4
Q
~/
A
Move deeper
5
Q
tab tab
A
watch deeper
6
Q
tab
A
autocomplete
7
Q
ls
A
list files and folders
8
Q
clear
A
clear terminal
9
Q
mv
A
move
10
Q
touch
A
create file
11
Q
mkdir
A
create folder
12
Q
/*
A
all filestail
13
Q
-p
A
recursion
14
Q
tree
A
show tree view
15
Q
rm
A
remove file
16
Q
-r
A
recursive deleting
17
Q
-f
A
force
18
Q
cat
A
watch file inside
19
Q
head
A
first 10 lines of the file
20
Q
tail
A
last 10 lines of the file
21
Q
tail -f
A
Monitor file editing
22
Q
^C
A
invoke control back
23
Q
grep
A
find inside the file
24
Q
less
A
open visible part of file
25
man
open manual
26
which
find where command execution file lies
27
echo
show on screen
28
$
before variables
29
env
Show current session vars
30
>
writing into a file
31
reading from the file
32
sort
Sorting
33
uniq
show unique only
34
wc
word count (lines/words/symbols)
35
!!
repeat the last command
36
!555
repeat command number 555
37
history
show history of commands
38
~/.bash_history
Where the history lives
39
alias ***='command'
Set alias
40
unalias ***
remove alias
41
type ***
show what is it