微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

linux – 后台作业的作业ID后面的后缀“”和“ – ”是什么意思?

当我运行多个后台进程时,我的命令作业输出是例如:

[1]-  RUNNING                  nohup somecommand1 &
[2]+  RUNNING                  nohup somecommand2 &

在工作ID之后,“”和“ – ”字符是什么意思?

解决方法:

它位于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 %-.

因此标有”的作业将被’fg’激活.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐