LINUX Flashcards

1
Q

What is the command to get a list of all users?

A

ls /home

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

What is the command to get all the binaries that must be contained in a single user mode?

A

ls /bin

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

What is the command to get all the system binaries?

A

ls /sbin

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

What is the command to get all the configuration files?

A

ls /etc

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

What is the command to get the essential shared libraries?

A

ls /lib

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

What is the command to get the optional add-ons?

A

ls /opt

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

What is the command to get the processes files?

A

ls /proc

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

What is the command to get to the special or device files?

A

ls /dev

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

What is the command to get to the temporary lading place for files?

A

ls /tmp

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

What is the command to get to the files used in booting the operating system?

A

ls /boot

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

What is the command used by the system administrator, when installing software locally?

A

ls /usr

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

What is the command used to get to the variable data files?

A

ls /var

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

What is the command used to run linux programs, that contains program data and installation instructions?

A

ls /run

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

What is the command to access the subdirectories where removable media devices, inserted into a computer are mounted?

A

ls /media

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

What is the command to display a list of everything in a directory?

A

ls

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

What is the command to get a long list?

A

ls -l

17
Q

What is the command to get a list in a table format?

A

ls -t

18
Q

What is the command to get a list in a readable format?

A

ls -r

19
Q

What is the command to get a list of all the hidden directories?

A

ls -a

20
Q

What is the command to create a directory?

A

mkdir

21
Q

What is the code to change directory?

A

cd

22
Q

What is the code to take us out of present working directory (pwd) back just one step?

A

cd ..

23
Q

What is the command to create multiple directories at once?

A

mkdir (directory 1) (directory 2) …(directory n)

where n is any positive integer greater than 0

24
Q

What is the command to go all the way back to the home user?

A

cd
or
cd ~

25
Q

What is the command to clear the screen of all commands?

A

clear
or
CTRL+ L on the keyboard

26
Q

What is the command to create a txt file?

A

touch (filename)

27
Q

What is the command to go into a txt file to edit it?

A

vi (file name)

Once the file opens, press i on the keyboard to enter INSERT MODE

When done with typing, press ESC on the keyboard to come out of INSERT MODE

Then press :wq! to save and exit or :q! to exit without saving.

28
Q

What is the command to delete a file?

A

rm

29
Q

What is the command to delete an empty directory?

A

rmdir

30
Q

What is the command to delete a directory that isn’t empty?

A

rm -r

31
Q

What is the command to forcefully remove a directory?

A

rm - f