Run a job in the background
$ command &
When it's done, the terminal prints
[n]+ command
or
[n]- command
So sometimes it's a plus and other times it's a minus following [n]
.
What does plus/minus mean?
background-processjob-controlshell
Run a job in the background
$ command &
When it's done, the terminal prints
[n]+ command
or
[n]- command
So sometimes it's a plus and other times it's a minus following [n]
.
What does plus/minus mean?
Best Answer
They are to distinguish between current and previous job; the last job and the second last job for more than two jobs, with
+
for the last and-
for the second last one.From
man bash
:Example: