linux - linux命令末尾的 "&"是什么意思?

我是系统管理员,我被要求运行一个 linux 脚本来清理系统。

命令是这样的:

perl script.pl > output.log &

所以这个命令是以&符号结尾的,有什么特殊意义吗?

我对 shell 有基本的了解,但我以前从未见过。

最佳答案

& 使命令在后台运行。

来自man bash:

If a command is terminated by the control operator &, the shell executes the command in the background in a subshell. The shell does not wait for the command to finish, and the return status is 0.

关于linux - linux命令末尾的 "&"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13338870/

相关文章:

python - 为什么不自动调用父类(super class) __init__ 方法?

linux - 可能有多少个套接字连接?

python - 两个长度不等的列表之间的排列

python - tf.nn.embedding_lookup 函数有什么作用?

linux - SVN中结帐和导出的区别

python - Django admin 中同一模型的多个 ModelAdmins/ View

python - 如何在 Python 中设计一个类?

linux - 连接到主机 localhost 端口 22 : Connection refused

linux - 在 grep 中转义双引号

python - Python 2和3之间numpy数组的pickle不兼容