New machine setup

Shut down or restart from the terminal

Restart or switch off your machine, or a server you're logged in to, with one command.

  1. Restart nowNeeds sudo
    Terminal
    sudo shutdown -r now
  2. Shut down nowNeeds sudo
    Terminal
    sudo shutdown -h now
  1. Restart nowNeeds sudo
    Terminal · Ubuntu / Debian
    sudo reboot
  2. Shut down nowNeeds sudo
    Terminal · Ubuntu / Debian
    sudo shutdown now
  1. Restart now
    PowerShell
    Restart-Computer
  2. Shut down now
    PowerShell
    Stop-Computer