English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux shutdown command

Linux Command Manual

The Linux shutdown command can be used to perform shutdown procedures and send messages to all users' running programs before shutdown. Shutdown can also be used to restart.

Permission to Use: System Administrator.

Syntax

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

Parameter Description:

  • -t seconds: Set the shutdown time after several seconds.
  • -k: It will not really shutdown, just send a warning message to all users.
  • -r: Restart the machine after shutdown.
  • -h: Stop the machine after shutdown.
  • -n: Do not use the normal shutdown procedure, kill all running processes forcibly and then shutdown automatically.
  • -c: Cancel the ongoing shutdown action.
  • -f: Do not perform fsck action during shutdown (check Linux file system).
  • -F: Force fsck action during shutdown.
  • time: Set the shutdown time.
  • message: Warning message sent to all users.

Online Examples

Shutdown immediately

# shutdown -h now

Specify 10 Shutdown after minutes

# shutdown -h 10

Restart the Computer

# shutdown -r now

Linux Command Manual