Job control is supported on Series 300 and Series 800. For
HP-UX release 6.5, 7.0, 8.0, and beyond, you can suspend
jobs. Suspending a job enables you to stop in the middle of a process
and regain control of your terminal for other work. Later, you can
resume the job or put it in the background.
Suppose you type in a command line and press Return,
but immediately realize this process takes a long time and you need
to print another job. If the current susp
character is set to ^Z (see stty(1)),
you can suspend the current job by pressing:
This stops the current job, and returns control of the terminal
to ksh.
 |
 |  |
 |
 | NOTE: You can set the susp character
to ^Z by typing: |
 |
 |  |
 |
The du
command reports the amount of disk space used by the specified directory,
or the current directory if none is specified, as in the following
example. This command then pipes the output into the sort
command to be sorted and then finally redirects, >,
the final output to a file, diskusage,
for storage. This operation can take some time. To restart suspended
processes, use the fg
or bg commands
as explained in the next section.
$ du | sort > diskusage CTRL-Z [1] + Stopped du | sort > diskusage $ |