How to Restart Linux from Command Line?
Contents

To shut down the system from a terminal session, sign in or “su” to the “root” account.

Then type “/sbin/shutdown -r now”.

It may take several moments for all processes to be terminated, and then Linux will shut down.

The computer will reboot itself.

How do I restart a computer from the command line?

Guide: How to Shut Down Windows 10 PC/Laptop by Using Command-Line

  • Start->Run->CMD;
  • Type “shutdown” in the open command prompt window;
  • List of various choices that you can do with the command will be listed down;
  • Type “shutdown /s” to Shutdown your computer;
  • Type “shutdown /r “to Restart your windows PC;

How do I restart Ubuntu from terminal?

By Using Terminal

  1. sudo poweroff.
  2. Shutdown -h now.
  3. This command will shut down the system after 1 minute.
  4. To cancel this shutdown command, type command: shutdown -c.
  5. An alternate command for shutting down the system after a specified time is: Shutdown +30.
  6. Shutdown At A Specified Time.
  7. Shut down with all the parameters.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest