首頁 - 查詢對照
 收藏

命令查看yes

搜索

yes

重復打印指定字符串

補充說明

yes命令 在命令行中輸出指定的字符串,直到yes進程被殺死。不帶任何參數輸入yes命令默認的字符串就是y。

語法

yes(參數)

參數

字符串:指定要重復打印的字符串。

實例

[root@localhost ~]# yes testline

testline
testline
testline
testline
testline
testline
testline
testline
...一直重復打印 testline,按Ctrl+C結束。

工具說明:

推薦工具:

工具標簽:

對照查詢