134k views
5 votes
You would like to completely shut down a system 10 minutes after notifying all users of your intent.

Which of the following commands should you enter at the shell prompt?

A) shutdown -h +10 message
B) shutdown 10 -h message
C) shutdown -p 10 message
D) shutdown -r +10 message

User Ludwigm
by
8.4k points

1 Answer

4 votes

The correct answer is A) shutdown -h +10 message.

Step-by-step explanation:

The 'shutdown' command is used to shut down or reboot a system. The '-h' option tells the system to shut down and power off (halt) after shutting down, while the '-r' option tells the system to shut down and reboot (restart) after shutting down. The '-p' option tells the system to power off immediately without performing a graceful shutdown.

In this case, we want to shut down the system 10 minutes after notifying all users of our intent, so we should use the '+10' option to specify a delay of 10 minutes before shutting down. We should also include a message to notify users of the impending shutdown. Therefore, the correct command is:

shutdown -h +10 message

Option B is incorrect because it specifies the delay before shutting down as a number of seconds rather than a time interval. Option C is incorrect because it tells the system to power off immediately without waiting 10 minutes after notifying users. Option D is incorrect because it tells the system to restart after shutting down rather than power off.

User Errorau
by
7.3k points