1 | yes
|
2 | ===
|
3 |
|
4 | 重复打印指定字符串
|
5 |
|
6 | ## 补充说明
|
7 |
|
8 | **yes命令** 在命令行中输出指定的字符串,直到yes进程被杀死。不带任何参数输入yes命令默认的字符串就是y。
|
9 |
|
10 | ### 语法
|
11 |
|
12 | ```shell
|
13 | yes(参数)
|
14 | ```
|
15 |
|
16 | ### 参数
|
17 |
|
18 | 字符串:指定要重复打印的字符串。
|
19 |
|
20 | ### 实例
|
21 |
|
22 | ```shell
|
23 | [root@localhost ~]# yes testline
|
24 |
|
25 | testline
|
26 | testline
|
27 | testline
|
28 | testline
|
29 | testline
|
30 | testline
|
31 | testline
|
32 | testline
|
33 | ...一直重复打印 testline,按Ctrl+C结束。
|
34 | ```
|
35 |
|
36 |
|