How to Instantly Log Out of Ubuntu From a Terminal
There are a several ways to log out of an Ubuntu desktop session you’re in — but most are so obvious you don’t need a guide pointing them out to you. But what you may not know is how to logout of Ubuntu from a terminal (or indeed log out of GNOME on any Linux distro that uses it). I didn’t until 30 seconds ago. See, I was building some development versions of GNOME components so I could take screenshots for an article on GNOME 41 features, but none of the ‘obvious’ GUI ways to log out of Ubuntu (e.g.,
#HowTo
https://www.omgubuntu.co.uk/2021/08/ways-to-log-out-of-ubuntu-session