Keeping a process running after SSH has been closed


It is a question that has been asked by a guy in a Slack channel and piqued my curiosity. Thanks to DuckDuckGo the answer came alone:

# Instead of running a process as,
$ proc &
# Try to use:
$ nohup proc &

The nohup will prevent the process from being terminated when the terminal disconect. Another solution is using the screen command. You have some examples at

We request your permission to obtain statistical data on its navigation on this website. If you continue to browse we consider to accept the use of cookies. OK | More Information