Minus e Plus Sign in jobs Processo

10

Esses comandos estão sendo executados em segundo plano:

foo@contoso ~ $ sleep 30 &
foo@contoso ~ $ sleep 60 &
foo@contoso ~ $ sleep 90 &

Qual é o sinal de menos e mais depois de executar o processo de trabalhos?

foo@contoso ~ $ jobs
[1]   Running                 sleep 30 &
[2]-  Running                 sleep 60 &
[3]+  Running                 sleep 90 &
    
por Bahram Barazandeh 25.02.2015 / 09:54

1 resposta

13

De man jobs(1P) :

<current> The character '+' identifies the job that would be used as a default for the fg or bg utilities; this job can also be specified using the job_id %+ or "%%". The character '−' identifies the job that would become the default if the current default job were to exit; this job can also be specified using the job_id %−. For other jobs, this field is a <space>.
    
por 25.02.2015 / 09:58