0

I have a command I'm running in the background,

fnordctl &

Occasionally I pull it up into the foreground,

fg

Now, I'd like to send it back to the background to continue running. Typing Ctrl-z will suspend the process, and it won't continue running until I run bg.

Is there a way I could background the process without suspending it?

If that's not possible, maybe there's a way I could bind the suspend operation and subsequent bg to a shortcut key (e.g. Meta-z)? I'm using Bash, so maybe this is something I could create a custom Readline binding for?

marked as duplicate by muru, Stephen Kitt, Thomas, Kiwy, Community Jun 14 '18 at 12:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.