Change runlevels and Shutdown Flashcards

1
Q

What run level is single user mode?

A

1

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

What run level is used to shut down a computer?

A

0

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

Which distro uses run level 2?

A

Debian

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

Which distro uses run level 3?

A

Fedora, Mandriva, Red Hat (non graphical login)

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

Which distro uses run level 4?

A

Custom and not defined

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

Which distro uses run level 5?

A

Fedora, Mandriva, Red Hat (graphical login)

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

What uses run level 6?

A

Reboot computer

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

Which file hold the programs run at various run levels?

A

/etc/inittab

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

What two commands display the runlevel?

A

runlevel and who -r

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

What letter is the first letter in the filename to stop a script at runlevel?

A

K

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

What letter is the first letter in the filename to start a script at runlevel?

A

S

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

How are the script run in the correct order for runlevel?

A

They are numbered

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

What are the SysV folders?

A

/etc/rc0.d

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

What command will check list services and their applicable runlevels?

A

chkconfig

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

What command will start a service at a particular runlevel?

A

chkconfig –level xxx service on

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

What command will stop a service at a particular runlevel?

A

chkconfig –level xxx service off

17
Q

What command will add a script at runlevel?

A

chkconfig –add script_name

18
Q

What is used to manage runlevels in Red Hat, Fedora and Mandriva?

A

ntsysv

19
Q

If you typed in runlevel and saw the output N 2 - what does the N stand for?

A

Not changed run level since boot?

20
Q

What does the command init do?

A

Change runlevel

21
Q

Why is telinit different from init?

A

It will reread the /etc/inittab

22
Q

What command will shutdown the computer in 10 minutes time?

A

shutdown -h +10 “system shutdown in 10 minutes”

23
Q

What individual command will immediately shutdown the computer with no warning?

A

halt or init 0