Linux Command Reference Flashcards

1
Q

$ whoami

A

print the current user logged in to the terminal session.

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

$ man COMMAND

A

‘manual’ provides documentation for other commands.

man {command}

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

$ clear

A

Will clear the terminal screen.
[-x]
will not clear the scroll back buffer.

‘ctrl’ + l will clear terminal.

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

$ pwd

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

$ type COMMAND

A

bin - executable
-shell built-in
-alias

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

$ which COMMAND

A

tells us where the file is located

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

$ help COMMAND

A

gives us information on the command. Can be used if no man-page exists.help

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