分页: 1 / 6
[笑话]linux下有趣的命令
发表于 : 2008-04-02 15:55
由 yaoms
原文:
http://blog.cathayan.org/item/1594
------------------------
来自水木讨论,总结一下。有些是搞笑的,有些也还是很有用的:
yes:输出一串y,有时可以用来对付很多y/n选择的应用
banner:打印字符标题,就是用字符拼出大字来
ddate:把日历转成什么其他历,Today is Sweetmorn, the 63rd day of Discord in the YOLD 3173
fortune:输出一句话,内容有很多种,据说有唐诗宋词
(有唐诗宋词的是fortune-zh)
cal 9 1752:打印日历,不过那一个月的有问题,哈,还有个ccal有农历的不知道怎么样了
tac:concatenate and print files in reverse,把文件的行反过来打印
(cat 反过来写的。。试试就知道)
ptx - produce a permuted index of file contents,生成索引?不知道
xev:打印即时的X事件
xeyes:出眼睛那个,进X第一都要玩玩吧
cowsay/cowthink:打印一个小牛(或其他动物)说话或想像,内容可自定
factor:分解因数
shred:覆盖文件让它不能再读
(传说中的文件粉碎机。。)
aptitude moo/apt-get moo -vvvvv:debian搞笑的
还有make love,翻成中文倒不好玩了
还有人说who am i,不够有意思
有人说 rm -fr /,还有dd if=/dev/zero of=/dev/mem,这就太坏了,没事别试,尤其是root敢死队不要试 这个危险
csmash:一个3d乒乓游戏,没玩过。
发表于 : 2008-04-02 16:17
由 qiang_liu8183
哪里搞来这么多稀奇古怪的东西~~~

发表于 : 2008-04-02 16:20
由 linlee
哈哈,是挺有趣的
发表于 : 2008-04-02 16:31
由 BigSnake.NET
发表于 : 2008-04-02 16:33
由 xiooli
你你你。。。。好狠毒哇
ps:这个东东是不是中国人弄出来的?
发表于 : 2008-04-02 16:34
由 yaoms

ls好可爱
发表于 : 2008-04-02 16:59
由 BigSnake.NET
xiooli 写了:
你你你。。。。好狠毒哇
ps:这个东东是不是中国人弄出来的?
其实跟任何两个参数都是一样...
发表于 : 2008-04-02 18:01
由 HuaChong
九月 1752
日 一 二 三 四 五 六
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
cal 9 1752还真是错误的!!怎么搞的
发表于 : 2008-04-02 18:44
由 syrano
aptitude moo/apt-get moo -vvvvv:debian搞笑的
应该是
代码: 全选
david@austria:~$ apt-get moo
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...
david@austria:~$ apt-build moo
(__) ~
(oo) /
_____\/___/
/ /\ / /
~ / * /
/ ___/
*----/\
/ \
/ /
~ ~
..."Have you danced today? Discow!"...
david@austria:~$ aptitude moo
There are no Easter Eggs in this program.
david@austria:~$ aptitude -v moo
There really are no Easter Eggs in this program.
david@austria:~$ aptitude -vv moo
Didn't I already tell you that there are no Easter Eggs in this program?
david@austria:~$ aptitude -vvv moo
Stop it!
david@austria:~$ aptitude -vvvv moo
Okay, okay, if I give you an Easter Egg, will you go away?
david@austria:~$ aptitude -vvvvv moo
All right, you win.
/----\
-------/ \
/ \
/ |
-----------------/ --------\
----------------------------------------------
david@austria:~$ aptitude -vvvvvv moo
What is it? It's an elephant being eaten by a snake, of course.
david@austria:~$ aptitude -vvvvvvv moo
What is it? It's an elephant being eaten by a snake, of course.
david@austria:~$ aptitude -vvvvvvvvvvvvvvvvvvvv moo
What is it? It's an elephant being eaten by a snake, of course.
david@austria:~$
发表于 : 2008-04-02 18:46
由 BigSnake.NET
HuaChong 写了:九月 1752
日 一 二 三 四 五 六
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
cal 9 1752还真是错误的!!怎么搞的
没错的
http://en.wikipedia.org/wiki/1752
估计Win下绝大多数万年历在这年都是错的..
发表于 : 2008-04-02 18:47
由 leeaman
wiki可以看了?!!
发表于 : 2008-04-02 18:58
由 BigSnake.NET
Britain and the British Empire (including the eastern part of what is now the United States) adopted the Gregorian calendar in 1752 (see the Calendar (New Style) Act 1750) by which time it was necessary to correct by 11 days. Wednesday, 2 September 1752 was followed by Thursday, 14 September 1752 to account for 29 February 1700 (Julian). After 1753, the British tax year in Britain continued to operate on the Julian calendar and began on 5 April, which was the "Old Style" new tax year of 25 March. A 12th skipped Julian leap day in 1800 changed its start to 6 April. It was not changed when a 13th Julian leap day was skipped in 1900, so the tax year in the United Kingdom still begins on 6 April.
http://en.wikipedia.org/wiki/Gregorian_calendar
发表于 : 2008-04-02 19:02
由 leeaman
有意思,英语 粤语 古文都可以,中文的wiki不能看,唉,又要恶补英语?!!!
发表于 : 2008-04-02 19:21
由 ubuntuing
HuaChong 写了:九月 1752
日 一 二 三 四 五 六
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
cal 9 1752还真是错误的!!怎么搞的
这个我还真在那儿见过!!
有这个事实,好像跟宗教有关的、、、然后就定下来了,成为“默认”了。
而winsows等万年历上面查看不到那个年限,据说有人编辑个程序试试看,还真是这个情况!
发表于 : 2008-04-02 19:25
由 yaoms
那篇文章叫《一个命令隐藏一段人类文明》,讲述了这个日期的来历。