restart ubuntu server code example

Example 1: restart ubuntu server

Try using the following command to safely reboot:

sudo reboot

If, instead, you want to shut down the server safely, use this command:

sudo shutdown -h now

Example 2: command to restart linux

sudo reboot

Example 3: restart computer command linux

$ sudo shutdown -r now

Example 4: restart terminal command line ubuntu

#To reset Terminal:
$ reset

#To rerun/restart your bash.rc
$ source ~/.bashrc 

#To Restart your computer
$ reboot

Example 5: ubuntu restart systemctl

systemctl restart <name>

Example 6: restart ubuntu 18.04 server

sudo shutdown -r now

Tags:

Misc Example