101.3 Change runlevels and shutdown or reboot system Flashcards

1
Q

/etc/inittab

A

inittab is a configuration file, which describes which processes are started at bootup and during normal operation.

Sets the Default Run Level
Edit the file by using the VI editor

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

Runlevel 0

A

Halt

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

Runlevel 1

A

Single user mode (Recovery)

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

Runlevel 2

A

Debian/Ubuntu Default

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

Runlevel 3

A

Redhat Suse - Text mode

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

Runlevel 4

A

Wildcard

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

Runlevel 5

A

Redhat Suse - GUI mode (X Windows)

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

Runlevel 6

A

Reboot

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

/etc/inittab

A

“inittab file describes which processes are started at bootup and during normal operation
Sets the Default Run Level
Edit the file by using the VI editor”

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

dmesg

A

is a command on most Linux and Unix based operating systems that prints the message buffer of the kernel.

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

Set the default runlevel.

A

Edit the inittab (/etc/inittab) and change run level

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

telinit

A

“A variant of init is telinit.
This program can take a runlevel number just like init to change to that runlevel, but it can also take the Q or q option to have the tool reread /etc/
inittab and implement any changes it finds there.
Thus, if you’ve made a change to the runlevel in /etc/inittab, you can immediately implement that change by typing telinit q.”

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

init

A

init (short for initialization) is a daemon process that is the direct or indirect ancestor of all other processes.

It automatically adopts all orphaned processes.

Init is the first process started during booting, and is typically assigned PID number 1.

It is started by the kernel using a hard-coded filename, and if the kernel is unable to start it, a kernel panic will result.

Init continues running until the system is shut down.

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

/etc/rcx.d (X is the number of the runlevel

A

Symbolic link back to the init.d

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

Change between run levels including single user mode.

A

“init 1 (The simplest case is to have it change to the runlevel you specify. For instance, to change to runlevel 1)

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

shutdown

A

“shutdown -k (warning)
shutdown -r (reboot)
shutdown -h (halt after shutdown)
shutdown -c (cancel shutdown)
shutdown time “

17
Q

/etc/init.d

A

“In each run-level you will find a series of if links pointing to start-up scripts located in /etc/init.d .
The names of these links all start as either K(kill) or S (start), followed by a number.”