×



Sometimes, you have multiple user accounts on your Linux system and you may need to switch from one user account to another user to access the system resources according to their assigned permissions. 

Switching between the multiple user accounts is not a good way because it does not completely end the user's current running session. 

All applications are opened by different users, running in the background of your system and utilizing system resources. 

Therefore, it is the best way to log out from your system that will end the currently running sessions and make the resources available for others. 

Once you logged out and log in back to your system, you need to open or launch again all the applications.

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

In this context, we shall look into how to logout of your system using different methods using the Debian distribution.


How to logout of Debian System ?

Using the following different methods, you can log out from your system:

i. Log out system using the terminal.

ii. Log out system using the system menu.

iii. Log out system using the keyboard shortcut.

iv. Log out system using the activities window.


Now let's look into the different methods in more details.


1. Log out system using the terminal

If you are connected with your Debian system through ssh then, you can only log out of your system using the terminal method. 

It's quite an easy task to logout using the terminal. 

To do this, you need to open the command line environment on your system where you will run the command. 

i. Click on the 'Activities' option from the left desktop corner and then type 'terminal' keyword in the search bar. 

ii. Now, Click on the red highlighted terminal icon and launch it. 

iii. Now, type the following command to log out the user from the current login session:

$ gnome-session-quit

iv. When the above command is executed, a dialog will display on the system that will ask you whether you want to logout or not. In case of yes, click on the 'Logout' option.


2. Log out system using the system menu

To do this, follow the steps given below:

i. Click on the right corner on the arrow symbol. 

You will see the drop down list. 

ii. Click on the login user name to explore more options. 

Here, you will click on the 'log out' option for logging out of your Debian 10 system. 


3. Log out system using the keyboard shortcut

The Debian system provides you a list of configured keyboard shortcuts that you can use to make your work easier. 

Using keyboard shortcuts, you can perform a task in less time so it is an efficient method. Debian provides you a 'logout' keyboard shortcut for logging off your Debian system.

i. Click on the 'Activities' from the left corner of your Debian desktop and type 'keyboard shortcut' keyword in the search bar.

ii. Click on the red highlighted arrow 'keyboard' option and you will see a window of keyboard shortcuts which will be displayed on the desktop.

iii. Finally, Scroll your mouse cursor and you will see the option 'log out'. Press Ctrl + Alt + Delete to log out your system.


4. Log out system using the activities window

This method is simple and easy. 

i. Click on the 'Activities' option on the left top corner and then enter 'logout' in the search bar. 

ii. Click on it to logout of your system.


[Need urgent assistance to fix packages installation errors in Linux? We are available to help you today. ]


Conclusion


More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com