重復打印指定字符串
yes命令 在命令行中輸出指定的字符串,直到yes進程被殺死。不帶任何參數輸入yes命令默認的字符串就是y。
yes(參數)
字符串:指定要重復打印的字符串。
[root@localhost ~]# yes testline testline testline testline testline testline testline testline testline ...一直重復打印 testline,按Ctrl+C結束。