Commands & Directories Flashcards

1
Q

ls

A

Lists directory contents

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

cd

A

Changes the directory

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

cd ..

A

Returns to previous directory

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

whoami

A

Displays current username

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

pwd

A

Returns working directory name

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

cat

A

Concatenate and print files

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

sudo

A

Execute command as a different user

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

clear or ctrl+l

A

Clears the terminal

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

cp

A

Copy files or directories

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

which

A

Returns the path to a file or link

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

rm

A

Remove file

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

adduser

A

add new user

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

mkdir

A

Creates a directory

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

/ (FSH)

A

Top-level directory “root filesystem”

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

/bin

A

Contains essential command binaries

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

/boot

A

Static bootloader, kernel & files required to boot the OS

17
Q

/dev

A

Contains device files

18
Q

/etc

A

Local system configuration files

19
Q

/home

A

Each user has a subdirectory here

20
Q

/lib

A

Shared library files required for boot

21
Q

/media

A

External removable media devices (Ex. USB drives) are mounted here

22
Q

/mnt

A

Temporary mount point for regular filesystems

23
Q

/opt

A

Optional files (Ex. third-party tools) can be saved here

24
Q

/root

A

Home directory for root user

25
Q

/sbin

A

Contains executables used for system administration (binary system files)

26
Q

/tmp

A

Directory to store temporary files and is generally cleared upon system boot or deleted at other times w/o warning

27
Q

/usr

A

Contains executables, libraries, man files, etc.

28
Q

/var

A

Contains variable data files such as log files, email in-boxes, web application related files, cron files, and more