Linux:Job ID后的“+”、“-”是什么意思呢?

[root@localhost local]# sh xxxx.sh
[root@localhost local]# ^C
[1]- Done sh xxxx.sh
[2]+ Done sh xxxx.sh

[1]后面的"-",[2]后面的"+"是什么意思呢?

阅读 6k
2 个回答

+ 号代表当前job
- 号代表前一个job
你可以用 fg %-来恢复前一个job

可以参考man sh 里面有关于JOB CONTROL的说明

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题