From d4a273059838204a91ccfb5df9f6ced98687d94d Mon Sep 17 00:00:00 2001 From: bevilj Date: Fri, 16 Nov 2018 08:12:40 +0000 Subject: [PATCH] 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 --- site/pages/cmd/interm/fg.html | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/site/pages/cmd/interm/fg.html b/site/pages/cmd/interm/fg.html index 6c41c82..53f9938 100644 --- a/site/pages/cmd/interm/fg.html +++ b/site/pages/cmd/interm/fg.html @@ -7,10 +7,9 @@ author: Fabiano Fenini title: fg previous-page: "" --- -The fg command allows us to continue a stopped operation by running it in foreground. -
+The fg command allows us to continue a stopped operation by running it +in foreground.
-
The command name stands for foreground.

Usage

@@ -21,6 +20,17 @@ The default fg command syntax is: fg [%job_number] -The parameter [%job_id] contains the job number you wish to run in foreground. If this is not indicated, -the command will run the last stopped operation. -

+The parameter [%job_id] contains the job number you wish to run in foreground. +If this is not indicated, the command will run the last stopped operation.

+ +

Stop a working job

+ +To stop the execution of a command so that i can be later resumed with fg +you need to press the ctrl + Z keys. The job number to be used with the +fg command will be printed. + +
+top
+^Z
+[1]  + NNNN suspended  top
+