×


Methods to Log out of Ubuntu 20.04 LTS ?

Sometimes, we have multiple users who share the same physical machine. To facilitate this, they create separate accounts. 

Whenever a user wishes to transfer the control of a computer system to another user, then he can simply log out from the current session and let the other user login. 

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform Ubuntu related queries.

In this context, we shall look into the different methods to easily log out of your Ubuntu 20.04 system.


Methods to log Out of Ubuntu 20.04 ?

In order to log out of your Ubuntu 20.04 system, any of the following four methods can be performed.


1. Via Ubuntu 20.04 CLI (the "gnome-session-quit" command):

The "gnome-session-quit" is a built-in command of the Ubuntu 20.04 system and can be used to log out of the system as follows:

gnome-session-quit

When you will run this command in your Ubuntu 20.04 terminal, you will be presented with a dialogue box. 

This dialogue box will inform you that your Ubuntu 20.04 system will be logged out automatically after one minute or sixty seconds if you will not take any further action. This dialogue box will also contain two buttons i.e. Cancel and Log Out. 

If you do not want to wait for sixty seconds rather you want to log out of your Ubuntu 20.04 system immediately, then you can click on the Log Out button. 

If you have accidentally executed the logout command or you do not want to log out of your Ubuntu 20.04 system any longer, then you can click on the Cancel button. 


2. Via the Keyboard Shortcuts of Ubuntu 20.04:

There are certain built-in keyboard shortcuts that are available for the most commonly performed tasks in every operating system. 

You can also log out of your Ubuntu 20.04 system using its keyboard shortcut. 

i. To do this, you first need to access all the shortcuts to know which keys you need to press for logging out of your Ubuntu 20.04 system. 

ii. Just type shortcuts in your Activities search bar and click on the Keyboard Shortcuts search result.

This will launch the Keyboard Shortcuts window. 

These shortcuts are categorized into different sections such as Windows, System, Typing, etc. 

You need to locate the System section and find out the keyboard shortcut for the logout operation.

iii. The keyboard shortcut for the logout operation in Ubuntu 20.04 is Ctrl+ Alt+ Delete. 

Just hit these keys together and you will be presented with the very same confirmation dialogue box that appeared as previously stated.


3. Via the Logout Button in Ubuntu 20.04:

i. To use this method, you have to click on the small arrow icon located at the right corner of the Ubuntu 20.04 taskbar.

This will cause a menu to appear on your screen. From this menu, you have to select the Power Off/ Log Out option.

ii. Then you need to click on the Log Out option.


4. Via the Logout Utility in Ubuntu 20.04:

Just like the Power Off utility in Ubuntu 20.04, there is also a dedicated Logout utility in this operating system. 

To log out of your Ubuntu 20.04 system by using this utility, you have to search for it in the Activities search bar and click on the Log Out search result.


[Need urgent assistance to install missing Packages on Ubuntu Linux? We are available to help you today. ]


Conclusion

This article will guide you on different methods to log out of your #Ubuntu 20.04 system very conveniently. By logging out of a current user session, we essentially attempt to stop all the running #applications. 

It means that when we will log into the same user account again, we will have to start everything from scratch.

Steps to Log Out from Ubuntu #Linux:

1. To log out from Ubuntu desktop #session, go to the top right corner and click to bring the system tray. 

2. You should see Power Off / Log Out option. 

3. Click on it and it will show the Log Out option. 

4. When you click on the Log Out button, it will open a dialogue box and ask for your conformation.

You can Use #logout to log out of the #terminal. Or alternatively we can use ctrl + d to log out of the terminal session.