Linux Command Reference Flashcards
1
Q
$ whoami
A
print the current user logged in to the terminal session.
2
Q
$ man COMMAND
A
‘manual’ provides documentation for other commands.
man {command}
3
Q
$ clear
A
Will clear the terminal screen.
[-x]
will not clear the scroll back buffer.
‘ctrl’ + l will clear terminal.
4
Q
$ pwd
A
5
Q
$ type COMMAND
A
bin - executable
-shell built-in
-alias
6
Q
$ which COMMAND
A
tells us where the file is located
7
Q
$ help COMMAND
A
gives us information on the command. Can be used if no man-page exists.help