cli commands Flashcards
1
Q
ls
A
List files in directory
2
Q
cat
A
“Read” file
3
Q
less
A
Terminal Paging Program
4
Q
man
A
Manual pages
5
Q
clear
A
Clears terminal screen
6
Q
history
A
Display hsitory of commands
7
Q
grep
A
Filter by Regular Expression
8
Q
exit
A
End a shell session
9
Q
less f
A
Page down
10
Q
less b
A
Page up
11
Q
less j
A
Scroll down
12
Q
less k
A
Scroll up
13
Q
less q
A
Quit
14
Q
basename
A
Print target of a path
15
Q
cp
A
Copy file from source to dest
16
Q
dirname
A
Print path to parent directory
17
Q
find
A
Print directory/file hierarchy
18
Q
mkdir
A
Make a direcotry
19
Q
mv
A
Move or rename file
20
Q
realpath
A
Expand a relative path to absolute
21
Q
rm
A
Delete a file or link
22
Q
rmdir
A
Delete an empty directory
23
Q
grep ^__
A
Sort to starting phrase
24
Q
grep __$
A
Sort to ending phrase