You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
461 B

7 years ago
yes
===
重复打印指定字符串
6 years ago
## 说明
7 years ago
5 years ago
**yes命令** 在命令行中输出指定的字符串直到yes进程被杀死。不带任何参数输入yes命令默认的字符串就是y
7 years ago
5 years ago
## 选项
7 years ago
```
yes(参数)
```
### 参数
5 years ago
字符串:指定要重复打印的字符串
7 years ago
5 years ago
## 实例
7 years ago
```
[root@localhost ~]# yes testline
testline
testline
testline
testline
testline
testline
testline
testline
5 years ago
...一直重复打印 testline按Ctrl+C结束
7 years ago
```