101.2 Boot the system Flashcards

1
Q

Describe the boot process for Boot of a linux system

A

BIOS - Boot Sector - Linux kernel - Initial - initialization

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

What are Boot logs

A

Logs created when the computer is booted up

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

What is the dmesg command

A

The traditional utility used for viewing the kernel ring buffer

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

What is journalctl -k

A

systemd utility to view the kernel ring buffer within the systemd journal

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

What is the kernel ring buffer

A

an area of RAM the kernel writes the system message to

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

Describe the init system startup

A

after the kernel loads up the ram, it seeks out an initialization system to hand over control of the computer in folder /sbin/init
Then init reads the config file in the /etc/inittab

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

What is a runlevel

A

Predefined conifg that the computer will operate within, computer can only operate at one runlevel at a time

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

Describe runlevel 0 purpose

A

Halt - Computer stop services and halts the system

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

Describe the purpose of runlevel 1

A

Single user-mode - Root user only one allowed to login, only for repair, maintenance

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

Describe the purpose of runlevel 3

A

Multiuser mode (no networking) - allows multi users to login but with no networking

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

Describe the purpose of runlevel 4

A

Unused - there for if the user wants to setup a custom level environment

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

Describe the purpose of runlevel 5

A

Multi-user, with networking and a graphical desktop

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

Describe the purpose runlevel 6

A

Reboot

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

Describe the parts of a file in the /etc/initab

EX. id3initdefault;

A

:::
identifier- initdefault
runlevel - 3
action - initdefault - after the system boot it will run the runlevel mode chosen

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

Where on rehat distros are the scripts that init will use to start the system

A

/etc/rc.d/

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

Where on debian distros are the scripts that init will use to start the system

A

/etc/init.d

17
Q

what does the command rc.local store

A

customized by sys add to starup services that dont have their own init files

18
Q

What is stored inside the /etc/init/d/ file

A

scripts for the services on the system

19
Q

What is stored inside the /etc/init.d/rc file

A

script that orchestrate how the runlevel scripts run and what occurs when a runlevel changes

20
Q

What is an event?

A

A change on a linux system

21
Q

What is a job

A

Task and services

22
Q

Where are unit files stored at

A

/usr/lib/systemd/system

23
Q

Where can an admin modify unit files

A

in the /etc/systemd/system

24
Q

What is a unit file?

A

a plain text ini-style file that encodes information about a service, a socket, a device, a mount point, an automount point, a swap file or partition, a start-up target, a watched file system path, a timer controlled and supervised by systemd

25
Q

Where is the runtime unit files located

A

/run/systemd/system

26
Q

What command allows you to view all of your systems files?

A

systemctl list-unit-files

27
Q

How does the systemd boot the system

A

The kernel looks for /sbin/init

starts systemd

28
Q

Explain the linux boot process (Simplified)

A

BIOS -> Checks hardware of I/O of hardware
BootSector/GRUB -> Looks for the section of the hardrive that stores the data for the OS
Linux Kernel -> Kernel is loaded
Initial Ram disk -> The kernel loads the intial ram disk , loads the computers drivers to mount the filesystem from the disk
Initialization -> Takes over mounting the computer file systems, loads systems and gets computer ready to be used