yes
yes1.命令说明:输出回应的字符串。yes回应“y”字符,后者指定字符。
2.路 径:/usr/bin/yes
3.语 法:yes [--help] [--version] string
4.参 数:--help 显示帮助字符。 --version 显示版本信息
5.举例说明
[root@bixuan/]#yes "OK" //回应“OK”字符串。
命令执行结果如下:
OK
OK
OK
...
Ctrl+c //按Ctrl+c键中断
yes
yes [strings] yes [option]
Print the command-line arguments, separated by spaces and followed by a newline, until killed. If no arguments are given, print y followed by a newline until killed. Useful in scripts and in the background; its output can be piped to a program that issues prompts.
Options
Print a help message and then exit.
Print version information and then exit.