Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"+" and "-" output of the Jobs command [duplicate]

Tags:

linux

What does the "+" and "-" signs mean in the following output of the jobs command.

-bash-4.1$ jobs
 [1]-  Running                 awk '{print $1,$2,$3,$4}' final_ped.ped > only_ped &
 [2]+  Running                 awk '{if($6==1 || $6==2) print $1,$2}' final_ped.ped > comp_list &
like image 917
KBoehme Avatar asked Aug 12 '13 16:08

KBoehme


People also ask

What is the use of Job command?

Jobs Command : Jobs command is used to list the jobs that you are running in the background and in the foreground. If the prompt is returned with no information no jobs are present. All shells are not capable of running this command. This command is only available in the csh, bash, tcsh, and ksh shells.

What is jobs command in terminal?

The jobs command displays the status of jobs started in the current shell environment. If no specific job is specified with the JobID parameter, status information for all active jobs is displayed.

What is the use of the jobs command in Unix?

The jobs command will list all jobs on the system; active, stopped, or otherwise.

What is the command to display the All Jobs?

The $D Q command displays the number of jobs on a particular queue. The parameters on this command allow you to display detailed job information, including the percentage of spool disk utilization for all jobs that have data on the spool volume specified on the V=volser parameter.


1 Answers

The character '+' identifies the job that would be used as 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 %-.

From here: http://www.linuxquestions.org/questions/linux-software-2/output-of-jobs-command-563880/

like image 65
Jiminion Avatar answered Sep 21 '22 00:09

Jiminion