interm: add info on how to stop jobs in fg
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@228 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
parent
83c3e776dc
commit
d4a2730598
@ -7,10 +7,9 @@ author: Fabiano Fenini
|
|||||||
title: fg
|
title: fg
|
||||||
previous-page: ""
|
previous-page: ""
|
||||||
---
|
---
|
||||||
The <code>fg</code> command allows us to continue a stopped operation by running it in foreground.
|
The <code>fg</code> command allows us to continue a stopped operation by running it
|
||||||
<br>
|
in foreground.<br>
|
||||||
|
|
||||||
<br>
|
|
||||||
The command name stands for <i>foreground</i>.<br><br>
|
The command name stands for <i>foreground</i>.<br><br>
|
||||||
|
|
||||||
<h3>Usage</h3>
|
<h3>Usage</h3>
|
||||||
@ -21,6 +20,17 @@ The default fg command syntax is:
|
|||||||
fg [%job_number]
|
fg [%job_number]
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
The parameter [%job_id] contains the job number you wish to run in foreground. If this is not indicated,
|
The parameter [%job_id] contains the job number you wish to run in foreground.
|
||||||
the command will run the last stopped operation.
|
If this is not indicated, the command will run the last stopped operation.<br><br>
|
||||||
<br><br>
|
|
||||||
|
<h3>Stop a working job</h3>
|
||||||
|
|
||||||
|
To stop the execution of a command so that i can be later resumed with <code>fg</code>
|
||||||
|
you need to press the <code>ctrl + Z</code> keys. The job number to be used with the
|
||||||
|
<code>fg</code> command will be printed.
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
top
|
||||||
|
^Z
|
||||||
|
[1] + NNNN suspended top
|
||||||
|
</pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user