Skip to main content
2 of 2
made error in OP's command more explicit
steeldriver
  • 144.7k
  • 24
  • 260
  • 357

I suspect the command you really learned of was

kill -9 -1

According to man kill, the format of the kill command is

kill [options] <pid> [...]

so -9 is an option and -1 is a PID or process identifier. As noted in the man page,

                                                               A PID of -1
   is special; it indicates all processes except the kill  process  itself
   and init.

while for an explanation of the signal values, you can either run man 7 signal or get a synopsis from the kill command itself with the -l option:

$ kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL       5) SIGTRAP
 6) SIGABRT      7) SIGBUS       8) SIGFPE       9) SIGKILL     10) SIGUSR1
11) SIGSEGV     12) SIGUSR2     13) SIGPIPE     14) SIGALRM     15) SIGTERM
16) SIGSTKFLT   17) SIGCHLD     18) SIGCONT     19) SIGSTOP     20) SIGTSTP
21) SIGTTIN     22) SIGTTOU     23) SIGURG      24) SIGXCPU     25) SIGXFSZ
26) SIGVTALRM   27) SIGPROF     28) SIGWINCH    29) SIGIO       30) SIGPWR
31) SIGSYS      34) SIGRTMIN    35) SIGRTMIN+1  36) SIGRTMIN+2  37) SIGRTMIN+3
38) SIGRTMIN+4  39) SIGRTMIN+5  40) SIGRTMIN+6  41) SIGRTMIN+7  42) SIGRTMIN+8
43) SIGRTMIN+9  44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13
48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12
53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9  56) SIGRTMAX-8  57) SIGRTMAX-7
58) SIGRTMAX-6  59) SIGRTMAX-5  60) SIGRTMAX-4  61) SIGRTMAX-3  62) SIGRTMAX-2
63) SIGRTMAX-1  64) SIGRTMAX

So, as noted in the EXAMPLES section

EXAMPLES
       kill -9 -1
              Kill all processes you can kill.

The "you can" here is an oblique reference to privileges - in practice, ordinary users will not be able to kill processes that they do not own.


The actual command given in your question would attempt to send signal 1 (SIGHUP) to process -9 (which is not a valid PID) so will just return an error:

$ kill -1 -9
-bash: kill: (-9) - No such process
steeldriver
  • 144.7k
  • 24
  • 260
  • 357