Commands & Directories Flashcards
1
Q
ls
A
Lists directory contents
2
Q
cd
A
Changes the directory
3
Q
cd ..
A
Returns to previous directory
4
Q
whoami
A
Displays current username
5
Q
pwd
A
Returns working directory name
6
Q
cat
A
Concatenate and print files
7
Q
sudo
A
Execute command as a different user
8
Q
clear or ctrl+l
A
Clears the terminal
9
Q
cp
A
Copy files or directories
10
Q
which
A
Returns the path to a file or link
11
Q
rm
A
Remove file
12
Q
adduser
A
add new user
13
Q
mkdir
A
Creates a directory
14
Q
/ (FSH)
A
Top-level directory “root filesystem”
15
Q
/bin
A
Contains essential command binaries