who
Notify any users that the system is shutting down. Issue the /etc/wall(1M) command:
wall
Enter your message. For example, you might enter:
There is a problem with the building's power system.
I will be shutting down the system in 10 minutes.
Please clean up and log off.
Sorry for the inconvenience,
norton
Broadcast Message from root Tue Oct 17 17:02:27...
There is a problem with the building's power system.
I will be shutting down the system in 10 minutes.
Please clean up and log off.
Sorry for the inconvenience,
norton
/etc/shutdown -y -i0 -g600
The above command specifies a 10 minute (600 second) grace period to allow users to clean up and log off. The other flags indicate that the system is to be completely shut down (-i0) and that the system can assume that all answers to any prompts regarding the shutdown are ''yes.'' You see the following message:
Shutdown started. Fri Aug 28 17:10:57...
Broadcast Message from root (console) Fri Aug 28 17:10:59
The system will be shut down in 600 seconds.
Please log off now.
After ten minutes, you see this message:
INIT: New run level: 0
The system is coming down. Please wait.
The Command Monitor prompt or System Maintenance menu appears. Wait for a Command Monitor prompt or System Maintenance menu to appear before turning off power to the workstation or you may damage your hard disk.