[笑话]linux下有趣的命令

关于Ubuntu的故事或对Ubuntu的感慨及心情
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

[笑话]linux下有趣的命令

#1

帖子 yaoms » 2008-04-02 15:55

原文: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乒乓游戏,没玩过。
上次由 yaoms 在 2008-04-02 16:24,总共编辑 2 次。
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
头像
qiang_liu8183
论坛版主
帖子: 10699
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

#2

帖子 qiang_liu8183 » 2008-04-02 16:17

哪里搞来这么多稀奇古怪的东西~~~ :em27
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
头像
linlee
帖子: 1132
注册时间: 2007-10-20 11:30

#3

帖子 linlee » 2008-04-02 16:20

哈哈,是挺有趣的
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#4

帖子 BigSnake.NET » 2008-04-02 16:31

代码: 全选

who is sb
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#5

帖子 xiooli » 2008-04-02 16:33

BigSnake.NET 写了:

代码: 全选

who is sb
你你你。。。。好狠毒哇 :twisted:

ps:这个东东是不是中国人弄出来的?
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#6

帖子 yaoms » 2008-04-02 16:34

:lol: :roll: ls好可爱
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#7

帖子 BigSnake.NET » 2008-04-02 16:59

xiooli 写了:
BigSnake.NET 写了:

代码: 全选

who is sb
你你你。。。。好狠毒哇 :twisted:

ps:这个东东是不是中国人弄出来的?
其实跟任何两个参数都是一样...

代码: 全选

who is hero
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
HuaChong
帖子: 493
注册时间: 2006-09-12 17:10

#8

帖子 HuaChong » 2008-04-02 18:01

九月 1752
日 一 二 三 四 五 六
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

cal 9 1752还真是错误的!!怎么搞的
头像
syrano
帖子: 4313
注册时间: 2007-10-06 18:40

#9

帖子 syrano » 2008-04-02 18:44

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:~$ 
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#10

帖子 BigSnake.NET » 2008-04-02 18:46

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下绝大多数万年历在这年都是错的..
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#11

帖子 leeaman » 2008-04-02 18:47

wiki可以看了?!!
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#12

帖子 BigSnake.NET » 2008-04-02 18:58

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
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

#13

帖子 leeaman » 2008-04-02 19:02

有意思,英语 粤语 古文都可以,中文的wiki不能看,唉,又要恶补英语?!!!
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
ubuntuing
帖子: 192
注册时间: 2008-03-22 9:02

#14

帖子 ubuntuing » 2008-04-02 19:21

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等万年历上面查看不到那个年限,据说有人编辑个程序试试看,还真是这个情况!
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#15

帖子 yaoms » 2008-04-02 19:25

那篇文章叫《一个命令隐藏一段人类文明》,讲述了这个日期的来历。
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
回复