When a Linux process is associated with a terminal, two problems might occur:
1. Your controlling terminal is filled with so much output data and error/diagnostic messages.
2. In the event that the terminal is closed, the process together with its child processes will be terminated.
To deal with these two issues, you need to totally detach a process from a controlling terminal. The linked article does a good job of explaining how these processes are tied to the terminal, and also has a few examples demonstrating the issues as well as solutions like disown and nohup.
See
Run Linux Commands in Background and Detach From Terminal#
technology #
opensource #
Linux In this guide, we will explain how to start or run a Linux command or process in the background and completely detach a process from its controlling terminal.