TERM1
xxx xxxxx xxx xxxxx xxx xxx
xx xxxx xxx xxxx xx xxxxxx
xxx xxxxx xx xxxx xxxxx
~
:w
rept 221 lines, 5154 chars
TERM2
xxx xxxxx xxx xxxxx xxx xxx
xx xxxx xxx xxxx xx xxxxxx
xxx xxxxx xx xxxx xxxxx
^Z
Stopped
#
TERM3
# jobs
[1] - Stopped vi rept.summary
[2] - Stopped more statistics
[3] + Stopped nroff rept > temp
#
BOTCLEAN
LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit, <CR> - to continue
GO
The <^z> command stops the foreground process and returns
control of your terminal to the Shell, which prints your prompt.
The fg command brings the current stopped job to the
foreground again.
The jobs command lists all commands that are either stopped
or running in the background. Each is preceded by a job number in
brackets.
If you have more than one job stopped or running in the background,
you can select which one to bring to the foreground by typing a
% followed by the job number.
Placing a command in the background, practice, - 1.7.7.0.2
Assume you are using vi to write
a report and you need to look for
some statistics in another directory.
Enter the command to place your vi
job in the background.
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ^z
Please type ^z
You will be helped this time!
FORGET1
^z
Observe the result on the terminal.
Now you can use cd to move to other directories and find
the necessary information. When you are ready, you can return to
the directory containing your report and bring your vi job into
the foreground again. You will be same line you were on before
you stopped the job.
Command for obtaining background jobs status, - 1.7.7.0.3
Let use the jobs command to
look at your background jobs.
Please type in the command.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type jobs
Please type jobs
You will be helped this time!
FORGET2
jobs
Observe the result.
Moving a background job into foreground, practice - 1.7.7.0.4
Now enter the command to pull
job number 2 into the foreground.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type %2
Please type %2
You will be helped this time!
FORGET3
%2
You would now be placed where
you were in your more statistics
job before you stopped it.
Remember, you can use the kill
command to kill any unwanted
background processes.