To restart Ubuntu using the command line, you can use the
reboot command. Here are the steps:
sudo command is used to run the command with administrative privileges. It may ask for your password.
It is important to note that restarting the system with the reboot command will immediately shut down all running processes and close open applications without warning. Therefore, it is advisable to save your work and close all applications before using this command to restart Ubuntu.