snice1
Send a signal or report process status
Part of skill(1).
Usage
skill [signal]
[options]
expression
snice [new
priority]
[options]
expression
Overview
These tools are obsolete and unportable. The command syntax is poorly defined. Consider using the killall, pkill, and pgrep commands instead.
The default signal for skill is TERM. Use -l or -L to list available signals. Particularly useful signals include HUP, INT, KILL, STOP, CONT, and 0. Alternate signals may be specified in three ways: -9 -SIGKILL -KILL.
The default priority for snice is +4. Priority numbers range from +20 (slowest) to -20 (fastest). Negative priority numbers are restricted to administrative users.
Options
-
-f, --fast -
Fast mode. This option has not been implemented.
-
-i, --interactive -
Interactive use. You will be asked to approve each action.
-
-l, --list -
List all signal names.
-
-L, --table -
List all signal names in a nice table.
-
-n, --no-action -
No action; perform a simulation of events that would occur but do not actually change the system.
-
-v, --verbose -
Verbose; explain what is being done.
-
-w, --warnings -
Enable warnings. This option has not been implemented.
-
-h, --help -
Display help text and exit.
-
-V, --version -
Display version information.
Options
Selection criteria can be: terminal, user, pid, command. The options below may be used to ensure correct interpretation.
-
-t, --tty tty -
The next expression is a terminal (tty or pty).
-
-u, --user user -
The next expression is a username.
-
-p, --pid pid -
The next expression is a process ID number.
-
-c, --command command -
The next expression is a command name.
-
--ns pid -
Match the processes that belong to the same namespace as pid.
-
--nslist ns,... -
list which namespaces will be considered for the
--nsoption. Available namespaces: ipc, mnt, net, pid, user, uts.
Signals
The behavior of signals is explained in signal(7) manual page.
Examples
- snice -c seti -c crack +7
-
+Slow down
setiandcrackcommands.
- skill -KILL -t /dev/pts/*
-
Kill users on PTY devices.
- skill -STOP -u viro -u lm -u davem
-
Stop three users.
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster) to Debian 8 (Jessie)
- Debian 7 (Wheezy)
- Debian 6.0 (Squeeze) to Debian 5.0 (Lenny)
- Debian 4.0 (Etch)
- Debian 3.1 (Sarge)
- Debian 3.0 (Woody)
- Debian 2.2 (Potato)
- Debian 2.1 (Slink)
- Debian 2.0 (Hamm)
- Debian 1.3 (Bo) to Debian 1.2 (Rex)
- Debian 1.1 (Buzz)
--command since Debian 7 (Wheezy);
--fast since Debian 7 (Wheezy);
--help since Debian 7 (Wheezy);
--interactive since Debian 7 (Wheezy);
--list since Debian 7 (Wheezy);
--no-action since Debian 7 (Wheezy);
--ns since Debian 8 (Jessie);
--nslist since Debian 8 (Jessie);
--pid since Debian 7 (Wheezy);
--table since Debian 7 (Wheezy);
--tty since Debian 7 (Wheezy);
--user since Debian 7 (Wheezy);
--verbose since Debian 7 (Wheezy);
--version since Debian 7 (Wheezy);
--warnings since Debian 7 (Wheezy);
-L since Debian 7 (Wheezy);
-V since Debian 7 (Wheezy);
-c since Debian 7 (Wheezy);
-f since Debian 7 (Wheezy);
-h since Debian 7 (Wheezy);
-i since Debian 7 (Wheezy);
-l since Debian 7 (Wheezy);
-n since Debian 7 (Wheezy);
-p since Debian 7 (Wheezy);
-t since Debian 7 (Wheezy);
-u since Debian 7 (Wheezy);
-v since Debian 7 (Wheezy);
-w since Debian 7 (Wheezy).