yes
重复打印指定字符串
补充说明
yes 命令 在命令行中输出指定的字符串,直到 yes 进程被杀死。不带任何参数输入 yes 命令默认的字符串就是 y。
语法
参数
字符串:指定要重复打印的字符串。
实例
shell[root@localhost ~]# yes testline
testline
testline
testline
testline
testline
testline
testline
testline
...一直重复打印 testline,按Ctrl+C结束。
1
2
3
4
5
6
7
8
9
10
11