• 那些可爱的 Linux 命令


    环境

    root@15b883:~# uname -a  ##需要是Ubuntu环境
    Linux 15b883 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

    1.1 sl命令

    你会看到一辆火车从屏幕右边开往左边……
    安装

    root@15b883:~# apt-get install sl

    运行

    root@15b883:~# sl

    命令有-alFe几个选项,
    -a An accident seems to happen.You'll feel pity for people who cry for help.
    -l shows little one.
    -F It flies.
    -e Allow interrupt by Ctrl+C.

    1.2 fortune命令

    输出一句话,有笑话,名言什么的(还有唐诗宋词sudoapt-getinstallfortune-zh)
    英文显示

    root@15b883:~# apt-get install fortune
    root@15b883:~# fortune

    中文显示
    root@15b883:~# apt-get install fortune-zh
    root@15b883:~# fortune

    1.3 cowsay命令

    用ASCII字符打印牛,羊等动物,还有个cowthink,这个是奶牛想,那个是奶牛说,哈哈,差不多
    安装

    root@15b883:~# apt-get install cowsay

    运行

    root@15b883:~# cowsay "I am Iron Man!!!"

    root@15b883:~# cowsay - l 查看其它动物的名字,然后-f跟上动物名,如
    root@15b883:~# cowsay - f tux "哈哈哈哈"

    1.4 cmatrix命令

    这个很酷!《黑客帝国》那种矩阵风格的动画效果
    安装

    root@15b883:~# apt-get install cmatrix

    运行

    root@15b883:~# cmatrix

    1.5 figlet、toilet命令

    艺术字生成器,由ASCII字符组成,把文本显示成标题栏。此外还有banner这个命令
    安装

    root@15b883:~# apt-get install figlet
    root@15b883:~# apt-get install toilet

    运行

    root@15b883:~# figlet syaving.com !
    root@15b883:~# toilet syaving.com !

    toilet还可以添加颜色,里面的选项请自己man一下

    root@15b883:~# toilet - fmono12-F gay a girl

    1.6 cal命令

    cal 9 1752

    cal是打印日历,不过这个是很奇葩的一个月

     

  • 相关阅读:
    [JZOJ3339]【NOI2013模拟】wyl8899和法法塔的游戏
    [JZOJ3337] 【NOI2013模拟】wyl8899的TLE
    UVA 1262 Password
    UVA 10820 Send a Table
    UVA 12716 GCD XOR
    UVA 10791
    UVA 10375 choose and divide (唯一分解定理)
    欧拉函数
    51 Nod 1069 Nim游戏
    51 Nod 1242 矩阵快速幂求斐波那契数列
  • 原文地址:https://www.cnblogs.com/syavingcs/p/8398532.html
Copyright © 2020-2023  润新知