Linux Kernel Flashcards

1
Q

What does the boot loader load into memory?

A
  • both kernel and an initial RAM-based file system (initramfs)
  • so that it can be used directly by kernel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the kernel do once it is loaded into the computers memory?

A
  • initializes and configures the computers memory
  • configures all hardware attached to the system
  • this includes all processors, I/O subsystems, storage devices, etc
  • also loads some necessary user space applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the kernel do after setting up hardare and mounting the root filesystem?

A
  • runs /sbin/init
  • this becomes the initial process which starts other processes to get the system running
  • most other processes trace their origin ultimately to init
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What processes do not trace their origin ultimately to init?

A
  • kernel processes
  • these are started by the kernel directly
  • their job is to manage internal OS details
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

For what is init responsible besides starting the system?

A
  • keeping the system running
  • shutting processes off cleanly
  • act when necessary as a manager of all non-kernel processes
  • cleans up after them after completion
  • restarts user login / background system services
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is systemd?

A
  • established uniform startup process across most distros
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are systemd features?

A
  • aggressive parallelization techniques, permitting multiple services to start simultaneously
    Simpler configuration files that enumerate:
  • what has to be done before a service is started
  • how to execute service startup
  • what conditions the service should indicate have been accomplished when startup is finished
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does systemd influence the init process?

A
  • /sbin/init now points to /lib/systemd/systemd
  • takes over the init process
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are example commands of systemd?

A

Starting, stopping, restarting a service on currently running system:
$ sudo systemctl start|stop|restart httpd.service

Enabling or disabling a system service from starting up at system boot:
$ sudo systemctl enable|disable httpd.service

Checking on the status of a service:
$ sudo systemctl status httpd.service

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