The value of the number in the string generated by pkill

When I kill the process with pkill, I see lines like this:

[2]+  Killed    nohup ./manage.py goods_import --farnell > logs/farnell.txt 
[3]-  Killed    nohup ./manage.py goods_import --farnell > logs/farnell.txt

      

I'm wondering what the numbers and plus / minus signs mean at the beginning of a line? In the case above:

[3]-

and [2]+

+3


source to share


1 answer


The number in square brackets is the job number in the job control table when the job was pushed in the background.

According to man bash

( OPERATION CONTROL ):



In output related to jobs (for example, output of a job command), the current job always marked with a sign +

and the previous task with -

.

+2


source







All Articles