Topic 101: System Architecture Flashcards

1
Q

What is the purpose of the /sys/ directory?

A

provides a filesystem-like view of information and configuration settings that the kernel provides, much like /proc.

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

What is the purpose of the /proc/ directory?

A

holds all the details about your Linux system, including its kernel, processes, and configuration parameters.

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

What is the purpose of the /dev/ directory?

A

The dev directory is the location of special, or device files.

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

What does the modprobe command do?

A

To add or remove modules on Linux.

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

What will the lsmod command output show?

A

The lsmod command is used to display the status of modules in the Linux kernel.

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

What will the lspci command output show?

A

lspci is a command on Unix-like operating systems that prints, or lists, detailed information about all PCI buses and devices in the system.

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

What will the lsusb command output show?

A

The lsusb command in Linux is used to display the information about USB buses and the devices connected to them. The properties displayed are speed, BUS, class, type details, etc.

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

What is the purpose of “dmesg”?

A

dmesg command also called as “driver message” or “display message” is used to examine the kernel ring buffer and print the message buffer of kernel. The output of this command contains the messages produced by the device drivers.

When the computer boots up, there are lot of messages(log) generated during the system start-up.
So you can read all these messages by using dmesg command. The contents of kernel ring buffer are also stored in /var/log/dmesg file.

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

Describe the role of the journalctl command.

A

journalctl command in Linux is used to view systemd, kernel, and journal logs.

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

What does BIOS stand for?

A

Basic Input/Output System

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

What is the role of BIOS?

A

It is used by the CPU to perform start-up procedures when the computer is turned on.

Its two major procedures are determining what peripheral devices (keyboard, mouse, disk drives, printers, video cards, etc.) are available and loading the operating system (OS) into main memory.

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

What does UEFI stand for and what is it’s role in the Linux OS?

A

Unified Extensible Firmware Interface.

UEFI does the same job as a BIOS, but with one basic difference: it stores all data about initialization and startup in an .efi file, instead of storing it on the firmware. This ESP partition also contains the bootloader.

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

What is a bootloader?

A

A boot loader, also called a boot manager, is a small program that places the operating system (OS) of a computer into memory. When a computer is powered-up or restarted, the basic input/output system (BIOS) performs some initial tests, and then transfers control to the Master Boot Record (MBR) where the boot loader resides.

Examples: GRUB (GRand Unified Bootloader), LILO (LInux LOader)

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

Describe a kernel.

A

The Linux® kernel is the main component of a Linux operating system (OS) and is the core interface between a computer’s hardware and its processes. It communicates between the 2, managing resources as efficiently as possible.

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

What is initramfs?

A

Initramfs is used as the first root filesystem that your machine has access to. It is used for mounting the real rootfs which has all your data. The initramfs carries the modules needed for mounting your rootfs.

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

What is init?

A

init is parent of all Linux processes with PID or process ID of 1. It is the first process to start when a computer boots up and runs until the system shuts down. init stands for initialization.

In simple words the role of init is to create processes from scripts stored in the file /etc/inittab which is a configuration file which is to be used by initialization system. It is the last step of the kernel boot sequence.

17
Q

What is SysVInit?

A

On systems based on SysVinit, init is the first process that is executed once the Linux kernel loads. The default init program used by the kernel is /sbin/init.

18
Q

What is systemd?

A

systemd is a software suite that provides an array of system components for Linux operating systems.

19
Q

What is the function of /etc/inittab?

A

inittab is the startup configuration file for init (SysV) located in /etc. It contains directions for init on what programs and scripts to run when entering a specific runlevel.

20
Q

What is the purpose of the shutdown command?

A

The shutdown command brings the system down in a secure way. When the shutdown is initiated, all logged-in users and processes are notified that the system is going down, and no further logins are allowed. You can shut down your system immediately or at the specified time.

21
Q

What is the function of /etc/init.d/?

A

/etc/init. d contains scripts used by the System V init tools (SysVinit). This is the traditional service management package for Linux, containing the init program (the first process that is run when the kernel has finished initializing) as well as some infrastructure to start and stop services and configure them.

22
Q

What is the purpose of the telinit command?

A

It changes the system runlevel.

23
Q

What is systemctl?

A

Systemctl is a systemd utility that is responsible for Controlling the systemd system and service manager. Systemd is a collection of system management daemons, utilities, and libraries which serves as a replacement of System V init daemon.

24
Q

What is the purpose of /etc/systemd/?

A

Modifications done by system administrator (user) go into /etc/systemd/system/.

25
Q

What is the purpose of /usr/lib/systemd/?

A

Files that come in packages downloaded from distribution repositories go into /usr/lib/systemd/.