程序"yes"是否有重要意义? [英] Is the program `yes` used for anything significant?
本文介绍了程序"yes"是否有重要意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我第一次在* nix中遇到 yes
程序时,我想不出它的重要用途.
When I first came across the yes
program in *nix I couldn't think of a significant use for it.
该程序如何使用?
推荐答案
是
旨在自动执行需要确认的交互式程序,然后再采取行动.
yes
is meant to automate interactive programs that want confirmation before taking action.
yes | rm -ri foo
大致相当于
rm -rf foo
区别在于 -f
也会在失败的情况下继续执行.
The difference is that -f
will also proceed in case of failure.
这篇关于程序"yes"是否有重要意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文