kill

Korn shell—terminate a background process

Usage: kill -SIG PID (as in kill [Bourne shell] earlier)

or kill %JOBID

Standard Input: Not used

Standard Output: Display process information line

SEE ALSO

For more information, see page 429

Useful options:

%JOBID means job whose number is JOBID.

%+ means job most recently put in background.

%% means same as %+.

%- means job second most recently put in background.

%CMD means job whose command starts with CMD.

%?CMD means all jobs whose command contains CMD.

Get Practical UNIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.