问题描述
据我所知,使用&放大器;
之后的命令是在后台运行,它
As far as I know, using &
after the command is for running it in the background.
示例&安培;
用法:焦油-czf file.tar.gz目录名和放大器;
但如何对&放大器;&安培;
? (看看下面这个例子:http://serverfault.com/questions/215179/centos-100-disk-full-how-to-remove-log-files-history-etc#answer-215188)
But how about &&
? (look at this example: http://serverfault.com/questions/215179/centos-100-disk-full-how-to-remove-log-files-history-etc#answer-215188)
推荐答案
&放大器;&安培;
可让您根据在previous命令是否成功完成做些什么 - 这就是为什么你会看到它链接为 do_something和放大器;&安培; do_something_else_that_depended_on_something
。
&&
lets you do something based on whether the previous command completed successfully - that's why you tend to see it chained as do_something && do_something_else_that_depended_on_something
.
这篇关于命令行 - 是什么目的"&放大器;&安培;"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!