Restart Linux from the command line.
April 24th, 2023 8:35 AM Mr. Q Categories: Linux
You can restart Linux from the command line using the “reboot” command. Here’s how to do it:
- Open a terminal window on your Linux machine.
- Type the following command and press Enter:
This will initiate a system restart.
- The system will prompt you to enter your password for authentication.
- 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.