linux - 这些输出是什么意思?

标签 linux bash

尤其是最后两个分别带有'-'和'+', 这到底是什么意思?

[1]   Done                    php start.php bots/admin32.bot.php

[2]   Done                    php start.php bots/admin36.bot.php

[3]   Done                    php start.php bots/admin10.bot.php

[4]   Done                    php start.php bots/admin11.bot.php

[5]   Done                    php start.php bots/admin13.bot.php

[6]   Done                    php start.php bots/admin3.bot.php

[7]-  Done                    php start.php bots/admin4.bot.php

[8]+  Done                    php start.php bots/admin7.bot.php

[root@www2 robot]# 

最佳答案

来自Bash Reference Manual ,

Job number n may be referred to as ‘%n’. The symbols ‘%%’ and ‘%+’ refer to the shell's notion of the current job, which is the last job stopped while it was in the foreground or started in the background. A single ‘%’ (with no accompanying job specification) also refers to the current job. The previous job may be referenced using ‘%-’. If there is only a single job, ‘%+’ and ‘%-’ can both be used to refer to that job. 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 ‘-’.

在启动和停止作业时 Bash 的输出中,

[n]+ status

表示“工作%n(也称为工作%+)现在是状态”。

关于linux - 这些输出是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/884908/

相关文章:

linux - phpunit.xml 的位置/路径

python - 使用终端将时间戳输出到日志文件

CLONE_VM 标志使 itimer 不准确?

linux - 从 Bash 脚本中的文件参数打印权限

linux - 模式解码二

bash - 如何通过一组脚本传播信号?

Bash:在 bash 中用变量回显 echo 命令

bash - shell in()是另一个进程?

linux - insmod 模块时模块验证失败

regex - egrep 字符串大小写