1. yes命令,默认会输出很多个y,可以用来对付选择很多y/n的应用,同时也支持在yes增加一个参数,这样也可反复打印yes后面跟随的参数,直到CTRL+C杀掉yes进程。
man: yes – output a string repeatedly until killed
2. ddate命令,把日历转换成其它的什么历,谁能帮忙解释下这是什么历?
man: ddate – converts Gregorian dates to Discordian dates[root@tektea ~]# ddateToday is Prickle-Prickle, the 16th day of Discord in the YOLD 3180
3. cal命令,可以根据输入的月份和年份,打印出该月的日历:
[root@tektea ~]# cal 3 2014March 2014Su Mo Tu We Th Fr Sa12 3 4 5 6 7 89 10 11 12 13 14 1516 17 18 19 20 21 2223 24 25 26 27 28 2930 31
4. factor命令,分解因数:
[root@tektea ~]# factor 999999: 3 3 3 37
5. shred命令,覆盖文件让它不能再读,只能被删除,这就是传说中的文件粉碎机。
man: shred – overwrite a file to hide its contents, and optionally delete it
6. 还可以试试 who is i命令,在试试 who is sb,你会得到很惊讶的回显:)
原文地址:Linux系统的几个有趣命令,你玩过吗?, 感谢原作者分享。 我想去旅行,一个人背包,一个人旅行,