How to Exit Ubuntu Terminal: Easy Guide
To exit the character interface of Ubuntu (also known as terminal or command line interface), you can follow the steps below:
- Log out the current user.
- If you are a user logged in under a character interface, you can log out the current user by using the exit command. Simply type exit and press the Enter key to exit the current user session.
- Restart the system.
- To completely exit the command line interface and return to the graphical user interface (desktop environment), you can choose to reboot the system. Enter the command “sudo reboot” in the command line interface, and then press the Enter key to execute the command.
- shutdown system:
- Another way to exit the character interface is to shut down the system. To shut down while in the character interface, type the following command: sudo shutdown now, and then press the Enter key to execute the command.
With these methods, you can exit the character interface in Ubuntu and return to the graphical user interface, or restart or shut down the system.