
yes (イエス)はUNIXのコマンドであり、kill されるまで継続的に yes またはユーザの定義した文字列を出力する。 yes (Jesus) is a UNIX command is, kill continuously until the output yes or user-defined string.
単独で用いられた場合には、ユーザが止めるか kill されるまでyesコマンドは 'y' または引数で指定されたものと改行を出力する。 When used alone, stop or kill the user until the command yes is a 'y' to print the line and was given or argument. パイプでコマンドに接続された場合には、プログラムの実行が完了してパイプが破棄されるまで続けられる。 If the pipe is connected to the command is continued until the pipe is disposed to complete the execution of the program.
yesを使うとプロセッサの使用率が 100% になるので、システムがどれだけ高負荷に対応できるのかを試験するために使われることもある。 yes use the processor utilization becomes 100%, may also be used to test or how much can handle a high load of the system. 例えば、プロセッサの使用率が 100% のときにシステムの冷却装置が効率的に動作するのかどうかを調べるのに便利である。 For example, 100% processor utilization to find out whether it works efficiently when the cooling system.
返答を求めるコマンドに対して yes を返すのにコマンドyesが使える。 Command to find the command to return a yes answer is yes use. それによってコマンドを非対話的に実行することができる。 Can be run non-interactively command accordingly.
このような使用法は今日では古いであろう。 Such usage would be old today. ユーザからの返答を要求するほとんどのコマンドには( rm -fのような)「強制」オプションや( yum -yのような)「yes を想定する」オプションがあるからである。 Most commands require a response from the user (RM-F-like) "force" option and (yum-y-like) "yes to assume" that because of the option. また、 cpanコマンドで依存モジュールを自動インストールするには、prerequisites_policyをallowに設定すればよい。 Also, CPAN module to automatically install dependencies command, prerequisites_policy How do I set up an allow.
例えば、以下のような For example, the following
rm -f *.txt rm-f *. txt
は Is
yes | rm *.txt yes | rm *. txt
に等しい。 Equal.
| ||||||||||||||||||||||||||
