I would like to know how I can close an ssh connection to a linux server where I started a process brought to background (by adding & at the end of it) without killing the process.
If I simply do exit, this seems to kill the process.
1 Answer
from the comments: Start the process with nohup and the &. For example, nohup some-long-running-process &. Although as @Nikita Kipriyanov suggested, GNU screen https://www.gnu.org/software/screen/ is a much better option.
GNU Screengnu.org/software/screen instead of backgrounding a process.nohupand the&. For example,nohup some-long-running-process &. Although as @Nikita Kipriyanov suggested,screenis a much better option.