Shell – How to send command line apps directly to the background

background-processcommand linejobsshell

I already know that pressing ctrl+z stops the app, then I can send the app to background with the bg command, but that means there is a brief preiod of time that the app is stopped.

How do I send the app directly to the background without stopping it?

Best Answer

You can background a task by adding a & after it.

For instance tail -f /var/log/messages & will background the task immediately.

As always you can see what tasks you backgrounded with the jobs command.

This of course assumes you have not yet run the command.

Related Question