How to find out if bash kill will use pid or specpec?

On the small manual page:

 kill [-s sigspec | -n signum | -sigspec] [pid | jobspec] ...
 kill -l [sigspec | exit_status]
    Send  the  signal  named  by sigspec or signum to the processes named by pid or 
    jobspec.  sigspec is etc. etc....

So, what decides if the kill 1process is killing init or jobspec 1?

+5
source share
1 answer

with kill 1, you send a signal for processing with pid 1. To kill task 1, you must enter

  kill %1

job specification%

+9
source

All Articles