How to Reboot Ubuntu Using Command-Line


 

To reboot Ubuntu using the command-line, you can use the reboot command. Before using this command, it's recommended to save any unsaved data and close any open applications to avoid data loss.

Using reboot Command Line

Here's how to reboot Ubuntu from the command line:
1. Open the Terminal by pressing Ctrl + Alt + T on your keyboard.
2. Type the following command in the Terminal and press Enter:    

sudo reboot

Note: The sudo command is used to run the reboot command with administrative privileges. You will be prompted to enter your password to continue.
 

3. After entering your password, the system will initiate a reboot. All open applications and services will close, and the system will restart.

Using shutdown Command Line

We can also use the shutdown command to reboot your system. To do this, type the following command in the Terminal. The syntax for the "shutdown" command is as follows:

sudo shutdown -r now

The -r option is used to specify a reboot, and the now option is used to specify that the action should occur immediately.

shutdown -h [time] [message]

Here, -h stands for "halt", and time is the time in minutes after which the system should shut down. The message is a message that will be displayed to all logged-in users before the system shuts down.

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post