I often use
reboot -n and
shutdown -t now commands to restart and shutdown my system.
Is there something similar to log out of the current user account?
That is logout of my user session for the whole session. I'm using Ubuntu server with i3 so maybe I'm looking for an Ubuntu specific answer(?)