Send a process to the background

When you run an application from the terminal, you can use & to start it in the background, i.e., detach it from the window it was started from, so it does not block the command line.

You can use fg or % to bring it back to the foreground. If there’s more than one, then you can use %n, i.e. %1, to select particular process.

To see which processes are running in the background, you can use jobs command.

To send an application to the background, while is running, you can use CTRL+z.

In Arch some applications (for example nano), won’t react to the above shortcut. For nano, you can edit the /etc/nanorc file, and uncomment set suspend.

This is archived version of blog, preventing broken links. This version will stay online indefinitely.