Linux Flashcards

1
Q

When was Linux created?

A

1991

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

What are the 3 major Linux distribution families?

A

RedHat
SUSE
Debian

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

What is the most commonly used Debian GUI?

A

GNOME

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

What is the root symbol in Linux?

A

/

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

What is everything (processes, devices, netowork, etc.) represented by in Linux?

A

Files

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

How do you call networking service processes?

A

daemons

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

How do you call the brain the glues the hardware with the applications?

A

The kernel

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

What is a distribution?

A

A collection of programs with the Linux kernel

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

What is a bootloader?

A

The program that boots the OS

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

What is a service?

A

A program that runs in the background

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

What is a filesystem?

A

The method of storing and organizing files (ext3, FAT, NTFS, etc.)

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

What is an XWindow system?

A

The graphical subsystem (e.g. GNOME, KDE, etc.)

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

What is the BIOS used for?

A

Initializes the hardware and tests the main memory

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

Where is the BIOS software stored?

A

On the motherboard

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

What is the name of the testing process performed by the BIOS?

A

POST (Power On Self-Test)

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

What is GRUB?

A

Linux Bootloader (Grand Unified Bootloader)

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

Where is the MBR (Main Boot Record) stored?

A

On the hard disk, in the boot sector

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

What does the initramfs filesystem image do?

A

It mounts the proper root filesystem

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

How do you switch to text console on Linux?

A

Ctrl + Alt + FX

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

What process starts all other processes on Linux?

A

systemd (replaced init and upstard)

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

What command can be used to start, stop, enable, or disable processes?

A

systemctl start/stop/enable/disable process

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

What is a partition?

A

A physically contiguous section of a disk

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

Where are removable media located in the Linux filesystem?

A

/run/media/username/disklabel

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

Where are essential user command binaries located in the Linux filesystem?

A

/bin/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Where are device files located in the Linux filesystem?
/dev/
26
Where are the bootloader's static files located in the Linux filesystem?
/boot/
27
Where are the host-specific device configurations located in the Linux filesystem?
/etc/
28
Where is the user's home directory located in the Linux filesystem?
/home/
29
Where are the essential shared libraries and kernel modules located in the Linux filesystem?
/lib/
30
Where are the add-on application software packages located in the Linux filesystem?
/opt/
31
Where are the system binaries located in the Linux filesystem?
/sbin/
32
Where can you find the data for the services provided by this host in the Linux filesystem?
/srv/
33
Where are temporary files located in the Linux filesystem?
/tmp/
34
Where are user utilities and apps located in the Linux filesystem?
/usr/
35
Where are the variable files located in the Linux filesystem?
/var/
36
What is the root user's home directory in the Linux filesystem?
/root/
37
Where is the virtual filesystem documenting the kernel in the Linux filesystem?
/proc/
38
Where are deleted files sent to in the Linux filesystem?
.local/share/Trash/files/
39
What is the lower-level package manager in Ubuntu?
dpkg
40
What is the higher-level package manager in Ubuntu?
apt
41
What does the cat command do?
Print out the content of a file
42
What does the head command do?
Print out the first few lines of a file
43
What does the tail command do?
Print out the last few lines of a file
44
What does | do?
Makes one program take as input the output of another
45
What does the which command do?
Locate a program in the filesystem
46
What does the pwd command do?
Prints the current directory
47
What does the tree command do?
Gives a bird-eye view of directories
48
What does the ln command do?
Creates a link between 2 files
49
What does the less command do?
Show the content of larger files
50
What does the touch command do?
Creates an empty file
51
What are the 3 standard file streams?
0 input stdin (keyboard) 1 output stdout (terminal) 2 standard error stderr (log file)
52
What does the grep command do?
Searches for strings in files
53
What does the find command do?
Searches for files under the current directory
54
How can you recognize a daemon process?
It ends with a "d" (ex: httpd)
55
What process has a PID of 1?
init or systemd
56
How do you kill a process?
kill -9 pid
57
How do you run job in the background?
Add & after the command
58
How do you terminate a foreground job?
Ctrl + C
59
How do you suspend a foreground job?
Ctrl + Z
60
How do you display background jobs and their PID?
jobs -l
61
How do you display processes in the CLI?
ps
62
How do you display running processes in real time?
top
63
What determines process priority?
Niceness (-20 top priority, 19 lowest)
64
How can you schedule tasks on Linux?
cron
65
What utility is used to view partitions?
gparted
66
What does cp do?
Copy
67
What does mv do?
Move
68
What does gedit do?
Open a text editor
69
What does whoami do?
Identify the current user
70
What does who do?
Lists the users currently logged on
71
How do you add a new user on the Linux CLI?
sudo useradd name
72
How do you remove a user in the Linux CLI?
userdel name