Enhancing Skills

Restart Linux from the command line.

You can restart Linux from the command line using the “reboot” command. Here’s how to do it:

  1. Open a terminal window on your Linux machine.
  2. Type the following command and press Enter:
   sudo reboot

This will initiate a system restart.

  1. The system will prompt you to enter your password for authentication.
  2. After entering your password, the system will begin the shutdown process, and then automatically restart.

Note that this will immediately restart your Linux system without any confirmation prompts, so make sure to save any unsaved work before running the “reboot” command. You can also use the “shutdown” command with the “-r” option to restart the system, like this:

sudo shutdown -r now

This command will initiate an immediate system restart without any confirmation prompts.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Find stuff?

Post Calendar

March 2024
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories