I have access to a remote Linux shell for work purposes. I have kept a python script running in the background using nohup
.
Now, if I want to exit the session, what is the difference between using logout
and exit
commands? Will my script keep running in both of these cases?
Best Answer
logout
is an internal command of the shell. So generally the answer is shell-dependent. Fromman bash
:From
man zsh
:So they're completely the same, but logout will simply refuse to work for non-login shells. What is a login shell can be read in manual pages.