26 C
Jaipur
Saturday, October 31, 2020

How to Log Out from Ubuntu Linux [Terminal and GUI Methods]

Must read

Xiaomi Working on Folding Smartphone With 108MP Camera, Suggests MIUI 12 Code: Report

Code found within MIUI 12 reportedly suggests that Xiaomi is working on a folding smartphone codenamed ‘Cetus’. That’s according to XDA senior member, kacskrz,...

How to Automatically Skip Bundled Adware on Windows 10

Despite a huge effort put by Microsoft, users don’t find the Microsoft Store appealing enough for installing software. People still prefer downloading portable software...

Telegram 7.2.0 Adds Multiple Pinned Messages, Live Location Alerts, and More

After adding search filters and anonymous group admins last month, Telegram is rolling out a new update (version 7.2.0). The update comes with features...

Xiaomi Wear 2.0 App Arrives with Redesigned UI, Several New Features

Xiaomi is looking to slowly transition users from the Mi Fit app over to Xiaomi Wear. It debuted this app alongside the Redmi Band...

How do you log out of Ubuntu?

The answer depends on whether you are using Ubuntu server or desktop. I’ll show you steps for both.

Logout Ubuntu from terminal (for server)

If you are using Ubuntu server and you are confined to the terminal screen, you can use the exit command:

exit

Yes. That’s the way to logout from terminal because there is no logout command in Ubuntu or any Linux distribution. You have commands for shutdown Ubuntu but there is no separate log out command.

Why there is no logout command in Linux?

You may wonder if there is command for shutdown, command for restart then why there is no Linux command for logout?

The answer lies in the way Linux works. You probably know that Linux is only kernel and you need a shell to interact with the kernel. When you use a terminal or if you log in to an Ubuntu system via SSH, you open a shell session.

If you want to logout from your session, you simply exit the shell. This is why the exit command is equivalent to log out command in Linux.

Log out from Ubuntu desktop (GUI method)

If you are using Ubuntu desktop, you have a graphical interface (called desktop environment). You can use your mouse here.

I am showing the screenshot for the default GNOME desktop but if you are using some other Ubuntu desktop variants like Kubuntu, Lubuntu etc, there should also be a logout button or logout option in the power menu.

To log out from Ubuntu desktop session, go to the top right corner and click to bring the system tray. You should see Power Off / Log Out option. Click on it and it will show the Log Out option.

When you click on the Log Out button, it will open a dialogue box and ask for your conformation. If it receives no input from you, you’ll be logged out in 60 seconds.

Log Out Confirmation Ubuntu

That’s it. Now you know how to log off from Ubuntu session.

Source link

- Advertisement -

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Xiaomi Working on Folding Smartphone With 108MP Camera, Suggests MIUI 12 Code: Report

Code found within MIUI 12 reportedly suggests that Xiaomi is working on a folding smartphone codenamed ‘Cetus’. That’s according to XDA senior member, kacskrz,...

How to Automatically Skip Bundled Adware on Windows 10

Despite a huge effort put by Microsoft, users don’t find the Microsoft Store appealing enough for installing software. People still prefer downloading portable software...

Telegram 7.2.0 Adds Multiple Pinned Messages, Live Location Alerts, and More

After adding search filters and anonymous group admins last month, Telegram is rolling out a new update (version 7.2.0). The update comes with features...

Xiaomi Wear 2.0 App Arrives with Redesigned UI, Several New Features

Xiaomi is looking to slowly transition users from the Mi Fit app over to Xiaomi Wear. It debuted this app alongside the Redmi Band...