“&"是什么意思在linux命令末尾是什么意思?

编程入门 行业动态 更新时间:2024-10-10 00:27:55
本文介绍了“&"是什么意思在linux命令末尾是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I am a system administrator and I have been asked to run a linux script to clean the system.

命令是这样的:

perl script.pl > output.log &

所以该命令以&符号结尾,它有什么特殊意义吗?

so this command is ending with a & sign, is there any special significance of it?

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

I have basic knowledge of shell but I have never seen this before.

推荐答案

&使命令在后台运行.

来自man bash:

如果命令被控制操作员& 终止,则外壳 在子外壳程序中在后台执行命令.壳做 不要等待命令完成,并且 返回状态为0.

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命令末尾是什么意思?

本文发布于:2023-05-28 00:48:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/308274.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file 'D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!