The Boot Process, INIT and Runlevel Programs, and Shutdown Flashcards

1
Q

This is the order of the boot process in a Linux machine.

A

BIOS, MBR, GRUB, Kernel, INIT, Runlevel

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

The function of BIOS is this.

A

Searches, loads, and executes the boot loader program

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

A master boot record’s primary function is this.

A

It loads and executes the GRUB boot loader.

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

GRUB stands for…

A

Grand Unified Bootloader

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

GRUB can be edited through this file.

A

/boot/grub/grub.conf

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

GRUB chooses and loads what?

A

The kernel.

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

The kernel starts up this program.

A

/sbin/init

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

What are the runlevels in a regular Linux system and their attributes?

A
0 - halt (shutdown)
1 - single user mode w/ no networking
2 - multiuser mode w/ no NFS
3 - Full multiuser mode in command line
4 - Unused
5 - Full multiuser mode in GUI
6 - Restart
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

INIT turns over control to…

A

Runlevel scripts

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

Depending on your default init level setting, the system will execute the programs from one of the following directories

A
Run level 0 – /etc/rc.d/rc0.d/
Run level 1 – /etc/rc.d/rc1.d/
Run level 2 – /etc/rc.d/rc2.d/
Run level 3 – /etc/rc.d/rc3.d/
Run level 4 – /etc/rc.d/rc4.d/
Run level 5 – /etc/rc.d/rc5.d/
Run level 6 – /etc/rc.d/rc6.d/
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

All startup files are found in this folder.

A

/etc/init.d

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

How do you stop or start a service?

A

service NAME start/stop

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

How can you determine whether a service will be on or off the next time the computer starts?

A

chkconfig –list NAME will show you what runlevel the service starts at.

chkconfig NAME on/off will start or stop a service the next time the computer starts.

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

How do you properly shut down a Linux machine from the command prompt?

A

init 0
shutdown -h
shutdown -h now

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

How can you delay a shutdown for 10 minutes?

A

shutdown -h +10

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

How do you restart a computer from the command prompt?

A

shutdown -r

17
Q

How can you restart a computer 5 minutes from now and send out a message to your network saying, “Need to restart the network!”

A

shutdown -r +5 Need to restart the network!