Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想bundle install作为后台进程运行并从终端隐藏其输出。目前我这样做
bundle install
bundle > /dev/null &
但也许有更好更短的方法可以达到同样的效果?
如果您真的不关心它的输出(以及它是成功还是失败),您还可以重定向进程的 stderr:
bundle >/dev/null 2>/dev/null &