bash jobs - ghdrako/doc_snipets GitHub Wiki

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 %-.

jobs
jobs -l
jobs -p %p
jobs -n # show jobs that have stopped or exited since last notified
jobs -r # show only running jobs
jobs -s # show only stopped jobs

job stopped while it was in the foreground or started in the background.The previous job may be referenced using %-. In output pertaining to jobs (e.g., the output of the jobs command), the current job is always flagged with a +, and the previous job with a -. A single % (with no accompanying job specification) also refers to the current job.