Workbook 4: System Initialization and Services Flashcards

1
Q

POST is performed in what stage of the Linux boot process?

A

The first, in BIOS

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

What are the four initilization stages of Linux?

A
  1. BIOS
  2. Bootloader
  3. Kernel
  4. /sbin/init
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Grub usually performes three tasks, what are they?

A
  1. Compose a kernel command line.
  2. Load an initial ramdisk (initrd), if necessary.
  3. Load and pass control to the Linux kernel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is inside the initrd (initial ramdisk)?

A

Kernel Modules

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

What are the two stages of a boot loader?

A
  1. The MBR - locating the BS program
  2. Bootloader Proper
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where does GRUB live?

A

/boot/grub

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

Where is the grub configuration file?

A

/boot/grub/grub.conf

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

You see the line “password $2$MrXSq0xS$0LXqkBTfpywyD3TVCao3d0” in your Grub configuration file, what is the password you enter when accessing grub at boot?

A

$2$MrXSq0xS$0LXqkBTfpywyD3TVCao3d0. (While this looks like a hash, it does not include the –md5 flag, so it’s seen as plain text)

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

What grub configuration keyword would prevent you from seeing the grub bootloader during boot?

A
  • hiddenmenu
  • timeout=0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command do you use to create a hashed password to use in Grub?

A

grub-md5-crypt

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

What init level would power the machine off?

A

init 0

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

What init level would you use to reset the root password?

A

init 1

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

What init level would you use if you wanted a multiuser mode without networking?

A

init 2

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

What init level would you use if you want a full operating mode, but no graphical interface?

A

init 3

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

What init level would you use if you had your own implementing local policy?

A

init 4

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

What init level would you use if you want the full linux experience, with X?

A

init 5

17
Q

What init level would you use if you wanted to restart the macine?

A

init 6

18
Q

What file do you edit to change your default runlevel?

A

/etc/inittab

19
Q

What command would you use to show the current init level?

A

runlevel

20
Q

You run the runlevel command and see N 5, what’s the deal with that N, huh?

A

Nig- I mean Newely Booted Machine

21
Q

Four commands that would shut a linux box down?

A
  1. init 0
  2. halt
  3. poweroff
  4. shutdown