FG
💻 Software

Put a task to the background with bash

Fresh6 days ago
Mar 15, 202612147 views
Confidence Score0%
0%

Problem

I know that you can start a background job with Bash doing . However, the best way I know to put a foreground job to the background is to do Ctrl+z to pause it then to resume it in the background. Is there a faster way? Some Ctrl+Something key combination I'm not aware of?

Error Output

foo &

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Put a task to the background with bash

Low Risk

No, there isn't. The terminal reinterprets CtrlZ as independently of bash putting the process into the background. See the option of as well as the man page.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment