Answers to: Jobs Control: bg keeps it going?http://linuxexchange.org/questions/1155/jobs-control-bg-keeps-it-going<p>If I send a task to the background with <code>ctrl+z</code>, is it stopped?</p> <p>If I type <code>bg 1</code>, will it keep going?</p> <p>I'm just a little confused as to how background processes work. <code>jobs</code> and <code>bg</code> and <code>fg</code> don't have man pages.</p> <p>If I have a <code>jobs</code> output that looks like this:</p> <pre><code>kevin@orangebox:~$ jobs [1]- Stopped htop [2]+ Stopped top </code></pre> <p>What do the pluses and minuses mean?</p>enWed, 28 Jul 2010 00:17:46 -0400Answer by DBAhttp://linuxexchange.org/questions/1155/jobs-control-bg-keeps-it-going/1157<p>bg and fg are built into the shell. Hence their man page (assuming you are using bash) is part of bash(1). Look for the section labelled "Job Control". An online version can be found at: <a href="http://linux.die.net/man/1/bash" rel="nofollow">http://linux.die.net/man/1/bash</a></p> <p>If you stop a job using Ctl-Z, all you have to do is type "fg" or "bg" to restart it in the foreground or background, provided it is the "current job" (labelled with a "+".) </p> <p>If you want to see all of your running and stopped jobs in a shell, type "jobs". It lists them with a job number and priority. The most current job is listed with a "+", all other background jobs are listed with "-". </p> <p>Then you can type %1 (for instance) to restart job number 1 in the foreground. (It's a shortcut for "fg %1".)</p> <p>Reading the bash(1) man page takes effort, but there's tremendous power available in the shell if you just know how to use it. That makes reading the man page well worth the effort.</p> <p>Good Luck.</p>DBAWed, 28 Jul 2010 00:17:46 -0400http://linuxexchange.org/questions/1155/jobs-control-bg-keeps-it-going/1157