Copied to clipboard

shutdown

The `shutdown` command is a command-line tool used to shut down or restart a computer.

Examples

  • shutdown -s -t 60: Shut down the computer after 60 seconds.
  • shutdown -s -t 3600 -c "System update is in progress. Please save your work.": Shut down the computer after 3600 seconds and display the comment "System update is in progress. Please save your work.".
  • shutdown -a: Cancel the previously scheduled shutdown operation.
  • shutdown -r: Restart the computer.
  • shutdown -l: Log off the current user.
  • shutdown -i: Display the remote shutdown interface of the graphical user interface, where you can select a remote computer and perform a shutdown operation.
  • shutdown -f: Force close all applications and shut down the computer.