Bash manual says
Exit a login shell, returning a status of n to the shell’s parent.
On a virtual console of Ubuntu, I first log in, and in the login shell, run:
$ pstree -paus $$ systemd,1 --system --deserialize 19 `-login,30488 -p -- `-bash,31728,t `-pstree,31774 -paus 31728
and then run
logout, and all the processes starting from
login,30488 till below disappear, more than just "return to the shell's parent" which is the
In a login bash shell , does bash builtin command
logout log out of the OS, not just exit the shell?
Does exiting a login shell (not necessarily by
logout, but also any other way, such as bash builtin
exit among others) necessarily lead to logging out of the OS?
May I also ask what logging out of OS means?