Unix job control command list
The following table lists the basic Unix job control commands:
| Command | Explanation | Example |
|---|---|---|
& |
Run the command in the background |
% long_cmd &
|
Ctrl-z |
Stop the foreground process |
[Ctrl-z]
|
jobs |
List background processes |
% jobs
|
%n |
Refers to the background number n
|
% fg %1
|
%?str |
Refers to the background job containing
str |
% fg %?ls
|
bg |
Restart a stopped background process |
% bg
|
fg |
Bring a background process to the foreground |
% fg %1
|
kill |
Kill a process |
% kill %2
|
~ Ctrl-z |
Suspend an rlogin or
ssh session |
host2>~[Ctrl-z]
|
~~ Ctrl-z |
Suspend a second level
rlogin or ssh
session |
host3>~~[Ctrl-z]
|
This table is adapted from Essential System Administration, by Aeleen Frisch, copyright 1995, O'Reilly & Associates, Inc.
Note: For security reasons, rlogin is
not available on UITS computers at Indiana University.
At Indiana University, to get support for personal or departmental Linux or Unix systems, see At IU, how do I get support for Linux or Unix?
Also see:
- In Unix, how should I submit CPU-intensive jobs?
- In Unix, how do I cancel a batch job?
- In Unix, how do I check the CPU usage of a job?
- In Unix, why can't I kill certain background processes even with kill -9?
- In Unix, how can I quickly kill all the jobs I created under my current shell?
- In Unix, what do the output fields of the ps command mean?
- How do I run a Unix process in the background?
- Introduction to Unix commands
This is document afnw in domain all.
Last modified on October 14, 2008.
Last modified on October 14, 2008.
Please tell us, did you find the answer to your question?






