Most Linux users have had to deal with the command-line at least once or twice, and it is the only way to run most commands, and simply the quickest for others. For those quite familiar with the terminal, it isn’t all that uncommon to see multiple terminal windows open, each one running a different program or command. But you can actually run more than one command at a time, all in a single terminal, simply by getting it to run in the background.
The key-combo Ctrl+Z stops a command without exiting, and gives you back a command prompt. You can use this to run several commands at once, as the command is in effect paused.
At the prompt, type fg to bring the command back to the foreground, or bg to tell it to resume in the background. Either will resume the paused command, but with bg it continues in the background, meaning you can continue to use the terminal for other commands.
Append an ampersand (&) to the end of a command to start a command in the background. If you forget to do this, all you have to do of course is Ctrl+Z then bg at the prompt.
Type jobs for a list of current jobs.
Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!