超有趣的linux命令

1. sl命令

需要下载网络源

[root@localhost ~]# yum -y install epel-release
[root@localhost ~]# yum -y install sl
[root@localhost ~]# sl -l
[root@localhost ~]# sl -F
[root@localhost ~]# sl -a

// 可以使用alial命令设置别名,去捉弄你朋友。
[root@localhost ~]# alias ls=sl //只是临时生效。开机之后或使用bash命令旧会失效

// 小火车

2. yes命令

// 重复输出yes后面的内容
[root@localhost ~]# yes linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux
linux

3. cowsay命令

// 欢迎来到动物园
[root@localhost ~]# yum -y install cowsay

[root@localhost ~]# cowsay -l  //查看能显示的动物
Cow files in /usr/share/cowsay:
beavis.zen blowfish bud-frogs bunny cheese cower default dragon
dragon-and-cow elephant elephant-in-snake eyes flaming-sheep fox
ghostbusters head-in hellokitty kiss kitty koala kosh luke-koala
mech-and-cow meow milk moofasa moose mutilated ren sheep skeleton small
stegosaurus stimpy supermilker surgery telebears three-eyes turkey turtle
tux udder vader vader-koala www
// 一只小牛
[root@localhost ~]# cowsay beavis.zen
 ____________
< beavis.zen >
 ------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

// 一只小鸭
[root@localhost ~]# cowsay -f tux "hello"
 _______
< hello >
 -------
   \
    \
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

4. figlet命令

[root@localhost ~]# yum -y install figlet

// 将英文字符以字符画的形式输出
[root@localhost ~]# figlet hello world
 _          _ _                            _     _ 
| |__   ___| | | ___   __      _____  _ __| | __| |
| '_ \ / _ \ | |/ _ \  \ \ /\ / / _ \| '__| |/ _` |
| | | |  __/ | | (_) |  \ V  V / (_) | |  | | (_| |
|_| |_|\___|_|_|\___/    \_/\_/ \___/|_|  |_|\__,_|

5. cal命令

// 打印日历
[root@localhost ~]# cal
     十二月 2021    
日 一 二 三 四 五 六
          1  2  3  4
 5  6  7  8  9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31 

6. fortune-mod命令

[root@192 ~]# yum -y install fortune-mod

// 出现一些励志好玩的句子。
[root@192 ~]# fortune 
You've always made the mistake of being yourself.
		-- Eugene Ionesco
[root@192 ~]# fortune 
The very powerful and the very stupid have one thing in common.  Instead of
altering their views to fit the facts, they alter the facts to fit their
views ... which can be very uncomfortable if you happen to be one of the
facts that needs altering.
		-- Doctor Who, "Face of Evil"

7. cmatrix命令

// 黑客帝国

[root@192 ~]# wget https://jaist.dl.sourceforge.net/project/cmatrix/cmatrix/1.2a/cmatrix-1.2a.tar.gz

[root@192 ~]# tar xf cmatrix-1.2a.tar.gz
[root@192 ~]# cd cmatrix-1.2a/
[root@192 cmatrix-1.2a]# yum -y install gcc gcc-c++
[root@192 cmatrix-1.2a]# yum -y install ncurses-libs ncurses-devel
[root@192 cmatrix-1.2a]# ./configure --prefix=/usr/local/cmatrix
[root@192 cmatrix-1.2a]# yum clean all
[root@192 cmatrix-1.2a]# make && make install

[root@192 bin]# echo 'export PATH=/usr/local/cmatrix/bin:$PATH' > /etc/profile.d/cmatrix.sh
[root@192 bin]# source /etc/profile.d/cmatrix.sh
[root@192 bin]# cmatrix
[root@192 ~]# cmatrix -C blue  //可以换为蓝色


// 选项cmatrix 
-a 异步滚动
-b:加粗的字符
-B:所有粗体字符(覆盖-B)
-f:强制linux $TERM类型为on
-l: Linux模式(使用矩阵控制台字体)
-o:使用老式滚动
-h:打印用法并退出
-n:无粗体字符(覆盖-b和-b,默认)
-s:“屏幕保护”模式,在第一次击键时退出
-x: X窗口模式,如果你的xterm使用mtx.pcf
-V:打印版本信息并退出
-u delay(0 - 10,默认4):屏幕更新延迟
-C [color]:使用此颜色作为矩阵(默认为绿色)


8. asciiquarium 水族馆

[root@192 bin]# yum install perl-Curses perl-ExtUtils-MakeMaker perl-Data-Dumper -y

[root@192 ~]# wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.6.tar.gz

[root@192 ~]# tar xf Term-Animation-2.6.tar.gz -C /opt
cd Term-Animation-2.6/
[root@192 Term-Animation-2.6]# yum install cpan -y
[root@192 Term-Animation-2.6]# yum install perl-Curses.x86_64  -y
[root@192 Term-Animation-2.6]# yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker  -y

[root@192 Term-Animation-2.6]# perl Makefile.PL && make && make install

[root@192 ~]# wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz

[root@192 ~]# tar xf asciiquarium.tar.gz -C /opt
[root@192 ~]# cd /opt
[root@192 opt]# cd asciiquarium_1.1/
[root@192 asciiquarium_1.1]# cp asciiquarium /usr/local/bin/
[root@192 asciiquarium_1.1]# chmod +x /usr/local/bin/asciiquarium
[root@192 asciiquarium_1.1]# asciiquarium  //输入此命令便可出现水族馆

// q可以退出

9. htop

逼格超高的图形化Linux系统性能监测命令

[root@localhost ~]# yum -y install htop
[root@localhost ~]# htop

10. oneko命令

可以追着鼠标跑注意在命令行无法显示,需要有图形化界面
// 我使用的命令行的终端所以没有图形显示

[root@localhost ~]# wget https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/o/oneko-1.2-18.el7.x86_64.rpm

[root@localhost ~]# yum -y install oneko-1.2-18.el7.x86_64.rpm
[root@localhost ~]# oneko //使用此命令可以出现一只小猫

11. xeyes命令

此命令和oneko命令一样需要在图形化界面使用
你的鼠标往哪里动,他就会往哪里看

[root@localhost ~]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/xorg-x11-apps-7.7-7.el7.x86_64.rpm

[root@localhost ~]# yum -y install xorg-x11-apps-7.7-7.el7.x86_64.rpm

[root@localhost ~]# xeyes 

// 此图来自网络

  • 2
    点赞
  • 38
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值