3.5 System Shutdown Flashcards

2
Q

What happens when you run init 0 at the shell?

A

The system shuts down immediately.

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

How would you send a message to all users on the system without shutting down the system?

A

Use the shutdown -k message command.

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

Which commands shut the system down immediately?

A

The commands shutdown -h now, init 0, and halt all shut the system down immediately.

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

What command will reboot the system after 15 minutes?

A

The comand shutdown -r +15 will reboot the system after 15 minutes.

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

What is the purpose of the /etc/shutdown.allow?

A

The /etc/shutdown.allow command determines who is allowed to shut the system down when using the shutdown -a command.

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

How can you terminate the shutdown process after it is already running?

A

The keyboard sequence Ctrl-C and the command shutdown -c both terminate the shutdown process.

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

What does the command shutdown -h now do?

A

Shuts the system down immediately.

  • -h specifies that the system halt or poweroff after shutdown.
  • now forces the system to shut down without a delay.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the command halt do?

A

Shuts the system down immediately.

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

What does the command init 0 do?

A

Shuts the system down immediately.

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

What does the command shutdown -r now do?

A

Shuts the system down immediately and reboots.

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

What does the command reboot do?

A

Shuts the system down immediately and reboots.

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

What does the command init 6 do?

A

Shuts the system down immediately and reboots.

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

What does the command shutdown -h time message do?

A

Sends the specified message to all logged-in users and shuts the system down at the specified time.

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

What does the command shutdown -r time message do?

A

Sends the specified message to all logged-in users and reboots the system at the specified time and sends the specified message to users.

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

What does the command shutdown -h +5 System is going down do?

A

Sends the specified message to all logged-in users and shuts the system down in 5 minutes.

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

What does the command shutdown -h 22:00 do?

A

Shuts the system down at 10:00 pm.

18
Q

What does the command shutdown -r +15 do?

A

Reboots the system in 15 minutes.

19
Q

What does the command shutdown -r 24:00 System is going down at Midnight do?

A

Sends the specified message to all logged-in users and reboots the system at midnight.

20
Q

What does the command shutdown -c do?

A

Terminates the shutdown process from any console.

21
Q

What does the keyboard sequence Ctrl+C do with regard to system shutdown?

A

Terminates the shutdown process in the constole from which the shutdown command was issued.

22
Q

What does the keyboard sequence shutdown -rf time do?

A

Reboots the system at the specified time and skips the fsck utility on reboot. The -f parameter stands for reboot fast.

23
Q

What does the command shutdown -rf do?

A

Reboots the system and skips fsck utility on reboot.

24
Q

What does the command shutdown -k message do?

A

Sends the specified message to all logged-in users but does not shut down the system down. If used in combination with -h or -r, it will terminate the shutdown process after the message is sent.

25
Q

What does the command shutdown -k Please log out of the system do?

A

Sends the specified message to all logged-in users but does not shut the system down.

26
Q

What does the command shutdown -a do?

A

Causes the system to consult the /etc/shutdown.allow prior to shutting down the system to determine whether or not the user is authorized to shutdown the system. This is typically used in the Ctrl-Alt-Delete section of the /etc/inittab file to control who can shutdown the system with this keyboard sequence.

27
Q

How is the file /etc/shutdown.allow used by the shutdown -a command?

A
  • If a listed user or root is logged into the system, the system shuts down.
  • If a listed user or root is not logged into the system, shutdown is not allowed.
  • If the /etc/shutdown.allow file does not exist, there are no restrictions on who can shut down the system.