【发布时间】:2018-02-25 14:24:01
【问题描述】:
我想将 stderr 和 stdout 重定向到 dev/null。 哪种是正确的重定向方式,这些选项之间有区别吗? 我在网上看到过两种语法:
command &>/dev/null(无空格)command &> /dev/null(带空格)
提前致谢!
【问题讨论】:
-
它们是等价的。
-
为了约定,不过:github.com/git/git/commit/…
标签: bash syntax stdout stderr io-redirection