Linux Commands Flashcards
1
Q
Whoami
A
returns the current user name
2
Q
pwd
A
finds the current system location
3
Q
uname
A
gets information about the operating system
4
Q
ls
A
list items in the directory and also shows the file permissions
5
Q
ls -la -a
A
list all hidden files
6
Q
uname -v
A
version
7
Q
uname - a
A
all
8
Q
uname -o
A
displays OS information
9
Q
cd ~/
A
navigates to the home directory
10
Q
rm/tmp/tmp*
A
- anything in the temp directory delete it
11
Q
ls -lR
A
cache files
12
Q
ls -lR .cache/
A
clears cache
13
Q
.bash_history
A
only contains the first lines of the history command
14
Q
echo .bash_history
history -c
A
To hide the history
15
Q
history
A
shows all commands you have used