cli commands Flashcards

1
Q

ls

A

List files in directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

cat

A

“Read” file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

less

A

Terminal Paging Program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

man

A

Manual pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

clear

A

Clears terminal screen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

history

A

Display hsitory of commands

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

grep

A

Filter by Regular Expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

exit

A

End a shell session

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

less f

A

Page down

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

less b

A

Page up

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

less j

A

Scroll down

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

less k

A

Scroll up

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

less q

A

Quit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

basename

A

Print target of a path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

cp

A

Copy file from source to dest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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