UNPKG

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