2023-02-08 12:58:55 +05:30
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2011-2023 Craig Small <csmall@dropbear.xyz>
|
|
|
|
.\" Copyright (c) 2011-2012 Sami Kerola <kerolasa@iki.fi>
|
|
|
|
.\" Copyright (c) 2002-2006 Albert Cahalan
|
|
|
|
.\"
|
|
|
|
.\" This program is free software; you can redistribute it and/or modify
|
|
|
|
.\" it under the terms of the GNU General Public License as published by
|
|
|
|
.\" the Free Software Foundation; either version 2 of the License, or
|
|
|
|
.\" (at your option) any later version.
|
|
|
|
.\"
|
2002-02-02 04:17:29 +05:30
|
|
|
.\"
|
2011-10-02 04:45:12 +05:30
|
|
|
.TH SKILL 1 "October 2011" "procps-ng" "User Commands"
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH NAME
|
2003-06-30 09:00:35 +05:30
|
|
|
skill, snice \- send a signal or report process status
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH SYNOPSIS
|
2011-02-23 13:47:54 +05:30
|
|
|
.B skill
|
2011-10-02 04:45:12 +05:30
|
|
|
.RI [ signal ]
|
2011-02-23 13:47:54 +05:30
|
|
|
.RI [ options ]
|
2011-10-02 04:45:12 +05:30
|
|
|
.I expression
|
2011-02-23 13:47:54 +05:30
|
|
|
.br
|
|
|
|
.B snice
|
|
|
|
.RI [ "new priority" ]
|
|
|
|
.RI [ options ]
|
2011-10-02 04:45:12 +05:30
|
|
|
.I expression
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH DESCRIPTION
|
2011-10-23 00:37:10 +05:30
|
|
|
These tools are obsolete and unportable. The command syntax is
|
2023-01-16 12:59:50 +05:30
|
|
|
poorly defined. Consider using the
|
|
|
|
.BR killall ,
|
|
|
|
.BR pkill ,
|
|
|
|
and
|
|
|
|
.B pgrep
|
2011-10-02 04:45:12 +05:30
|
|
|
commands instead.
|
|
|
|
.PP
|
2023-01-16 12:59:50 +05:30
|
|
|
The default signal for \fBskill\fP is TERM. Use \fB\-l\fP or \fB\-L\fP to list
|
2011-10-02 04:45:12 +05:30
|
|
|
available signals. Particularly useful signals include HUP, INT,
|
|
|
|
KILL, STOP, CONT, and 0. Alternate signals may be specified in three
|
2023-01-16 12:59:50 +05:30
|
|
|
ways: \fB\-9\fP \fB\-SIGKILL\fP \fB\-KILL\fP.
|
2011-10-02 04:45:12 +05:30
|
|
|
.PP
|
2023-01-16 12:59:50 +05:30
|
|
|
The default priority for \fBsnice\fP is +4. Priority numbers range from
|
2011-10-02 04:45:12 +05:30
|
|
|
+20 (slowest) to \-20 (fastest). Negative priority numbers are
|
|
|
|
restricted to administrative users.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.BR \-f , \ \-\-fast
|
2011-10-02 04:45:12 +05:30
|
|
|
Fast mode. This option has not been implemented.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.BR \-i , \ \-\-interactive
|
|
|
|
Interactive use. You will be asked to approve each action.
|
2011-10-02 04:45:12 +05:30
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.BR \-l , \ \-\-list
|
2011-10-02 04:45:12 +05:30
|
|
|
List all signal names.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.BR \-L , \ \-\-table
|
2011-10-02 04:45:12 +05:30
|
|
|
List all signal names in a nice table.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.BR \-n , \ \-\-no\-action
|
2011-10-02 04:45:12 +05:30
|
|
|
No action; perform a simulation of events that would occur but do not
|
|
|
|
actually change the system.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.BR \-v , \ \-\-verbose
|
2011-10-02 04:45:12 +05:30
|
|
|
Verbose; explain what is being done.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.BR \-w , \ \-\-warnings
|
2011-10-02 04:45:12 +05:30
|
|
|
Enable warnings. This option has not been implemented.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
|
|
|
Display help text and exit.
|
|
|
|
.TP
|
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
|
|
|
Display version information.
|
2011-10-02 04:45:12 +05:30
|
|
|
.PD
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH "PROCESS SELECTION OPTIONS"
|
2011-10-02 04:45:12 +05:30
|
|
|
Selection criteria can be: terminal, user, pid, command. The options
|
|
|
|
below may be used to ensure correct interpretation.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
\fB\-t\fR, \fB\-\-tty\fR \fItty\fR
|
2011-10-02 04:45:12 +05:30
|
|
|
The next expression is a terminal (tty or pty).
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
\fB\-u\fR, \fB\-\-user\fR \fIuser\fR
|
2011-10-02 04:45:12 +05:30
|
|
|
The next expression is a username.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
\fB\-p\fR, \fB\-\-pid\fR \fIpid\fR
|
2011-10-02 04:45:12 +05:30
|
|
|
The next expression is a process ID number.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
\fB\-c\fR, \fB\-\-command\fR \fIcommand\fR
|
2011-10-02 04:45:12 +05:30
|
|
|
The next expression is a command name.
|
2013-04-16 21:37:10 +05:30
|
|
|
.TP
|
|
|
|
\fB\-\-ns \fIpid\fR
|
|
|
|
Match the processes that belong to the same namespace as pid.
|
|
|
|
.TP
|
|
|
|
\fB\-\-nslist \fIns,...\fR
|
2023-01-16 12:59:50 +05:30
|
|
|
list which namespaces will be considered for the \fB\-\-ns\fP option.
|
2013-04-16 21:37:10 +05:30
|
|
|
Available namespaces: ipc, mnt, net, pid, user, uts.
|
2011-10-02 04:45:12 +05:30
|
|
|
.PD
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH SIGNALS
|
2011-10-02 04:45:12 +05:30
|
|
|
The behavior of signals is explained in
|
|
|
|
.BR signal (7)
|
|
|
|
manual page.
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH EXAMPLES
|
2011-10-02 04:45:12 +05:30
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.B snice -c seti -c crack +7
|
2023-01-16 12:59:50 +05:30
|
|
|
+Slow down \fBseti\fP and \fBcrack\fP commands.
|
2011-10-02 04:45:12 +05:30
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.B skill \-KILL \-t /dev/pts/*
|
2011-10-02 04:45:12 +05:30
|
|
|
Kill users on PTY devices.
|
|
|
|
.TP
|
2011-10-23 00:37:10 +05:30
|
|
|
.B skill \-STOP \-u viro \-u lm \-u davem
|
2011-10-02 04:45:12 +05:30
|
|
|
Stop three users.
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH "SEE ALSO"
|
2011-10-02 04:45:12 +05:30
|
|
|
.BR kill (1),
|
|
|
|
.BR kill (2),
|
2011-02-23 13:47:54 +05:30
|
|
|
.BR killall (1),
|
2011-10-02 04:45:12 +05:30
|
|
|
.BR nice (1),
|
2011-02-23 13:47:54 +05:30
|
|
|
.BR pkill (1),
|
|
|
|
.BR renice (1),
|
|
|
|
.BR signal (7)
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH STANDARDS
|
|
|
|
No standards apply.
|
|
|
|
.SH AUTHOR
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR albert@users.sf.net
|
2011-10-02 04:45:12 +05:30
|
|
|
Albert Cahalan
|
|
|
|
.UE
|
|
|
|
wrote skill and snice in 1999 as a replacement for a non-free
|
|
|
|
version.
|
|
|
|
.SH "REPORTING BUGS"
|
|
|
|
Please send bug reports to
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR procps@freelists.org
|
2011-10-02 04:45:12 +05:30
|
|
|
.UE
|