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 &
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.
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.
The jobs command will list all jobs on the system; active, stopped, or otherwise.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With