Latest web development tutorials

Linux shutdown command

Linux command Daquan Linux command Daquan

Linux shutdown command can be used to shut down the program, and shutdown procedures before send messages to all users executing, shutdown can also be used to reboot.

Access: the system administrator.

grammar

shutdown [-t seconds] [-rkhncfF] time [message]

Parameter Description:

  • -t seconds: set in after a few seconds to shut down the program
  • -k: do not really shutdown, but will transmit a warning message to all those who only
  • -r: Reboot after shutdown
  • -h: shutdown shutdown
  • Shuts down automatically after not using the normal procedure to shut down, with a forced way to kill all running programs: -n
  • -c: Cancel the current operation has been in shutdown
  • -f: shutdown, not fcsk action (Check Linux file system)
  • -F: Shutdown, forced to perform fsck action
  • time: set the shutdown time
  • message: a warning message sent to all users

Examples

Immediate shutdown

# shutdown -h now

Specifies off after 5 minutes

# shutdown +5 “System will shutdown after 5 minutes” //5分钟够关机并显示警告信息

Linux command Daquan Linux command Daquan