linux 重复打印指定字符串 命令:yes

yes命令在命令行中输出指定的字符串,直到yes进程被杀死。不带任何参数输入yes命令默认的字符串就是y。

 

语法

yes(参数)

 

参数

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

 

实例

[root@localhost ~]# yes testline

testline

testline

testline

testline

testline

testline

testline

testline ...

一直重复打印 testline,按Ctrl+C结束。

付杰
  • ¥ 298.0元
  • 市场价:398.0元
  • ¥ 39.0元
  • 市场价:39.0元
  • ¥ 29.99元
  • 市场价:888元
  • ¥ 99.0元
  • 市场价:129.0元

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: