FG

On Linux can I keep a program running in background even after I disconnect?

Fresh3 days ago
Mar 15, 20265592 views
Confidence Score0%
0%

Problem

If I'm logged into a remote Linux machine, I know I can suspend a process (cntr-z) and move it to the background (bg 1) but if I disconnect from the machine, the process stops. Is there a way I can leave it in the background and have it there when I log back in? This is a very long running process.…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: On Linux can I keep a program running in background even after I disconnect?

Low Risk

This is because your program need terminal to run, you can use GNU Screen to create a virtual terminal so that the program will continue to run even after you disconnect. just run , you can close screen with then reopen it later with

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment