什么做后缀" + QUOT;和" - "后台作业的作业标识后,是什么意思? [英] What do the suffixes "+" and "-" after the job id of background jobs mean?
问题描述
当我运行多个后台进程我的命令工作
的输出,例如:
[1] - 在运行的nohup somecommand1&安培;
[2] + RUNNING的nohup somecommand2&安培;
做什么的+和 - ?作业ID之后的字符意味着
这是在人为页STDOUT下工作:
>男人工作
的字符+标识,将被用作FG或血糖公用事业默认作业;这项工作也可以使用JOB_ID%+或%%指定。字符' - '标识将成为默认值,如果当前的默认工作是退出工作;这项工作也可以使用JOB_ID%规定 -
块引用>所以作业标有+是将由FG被激活的那个。
When I run several background processes my output of the command
jobs
is for example:[1]- RUNNING nohup somecommand1 & [2]+ RUNNING nohup somecommand2 &
What do the "+" and "-" chars after the job id mean?
解决方案It's in the man-page for jobs under STDOUT:
> man jobs
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 %-.
So the job marked with '+' is the one that will be activated by 'fg'.
这篇关于什么做后缀" + QUOT;和" - "后台作业的作业标识后,是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!