mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-08 20:26:31 +00:00
Add EXAMPLES to killall(1)
Submitted by: fernape Differential Revision: https://reviews.freebsd.org/D25002
This commit is contained in:
parent
3a3bc1b1fd
commit
a201343073
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361783
|
@ -145,6 +145,50 @@ utility exits 0 if some processes have been found and
|
||||||
signalled successfully.
|
signalled successfully.
|
||||||
Otherwise, a status of 1 will be
|
Otherwise, a status of 1 will be
|
||||||
returned.
|
returned.
|
||||||
|
.Sh EXAMPLES
|
||||||
|
Send
|
||||||
|
.Dv SIGTERM
|
||||||
|
to all firefox processes:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
killall firefox
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
Send
|
||||||
|
.Dv SIGTERM
|
||||||
|
to firefox processes belonging to
|
||||||
|
.Va USER :
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
killall -u ${USER} firefox
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
Stop all firefox processes:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
killall -SIGSTOP firefox
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
Resume firefox processes:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
killall -SIGCONT firefox
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
Show what would be done to firefox processes, but do not actually signal them:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
killall -s firefox
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
Send
|
||||||
|
.Dv SIGKILL
|
||||||
|
to csh process running inside jail ID 282:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
killall -9 -j282 csh
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
Send
|
||||||
|
.Dv SIGTERM
|
||||||
|
to all processes matching provided pattern (like vim and vimdiff):
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
killall -m 'vim*'
|
||||||
|
.Ed
|
||||||
.Sh DIAGNOSTICS
|
.Sh DIAGNOSTICS
|
||||||
Diagnostic messages will only be printed if requested by
|
Diagnostic messages will only be printed if requested by
|
||||||
.Fl d
|
.Fl d
|
||||||
|
|
Loading…
Reference in New Issue
Block a user