几个linux终端的有趣玩法
1、sl

还可以给别人搞恶作剧:
alias ls=sl
这样别人使用 ls 列出目录和文件的时候,却出现一个小火车,那滋味一定很酸爽哈哈哈哈!
2. fortune
这个命令会随机输出有趣的话,比如名言或笑话.同样需要先安装.
apt-get install fortune (for aptitude based system) yum install fortune (for yum based system)
jh@linux:~$ fortune There is no distinctly native American criminal class except Congress. -- Mark Twain
还有 fortune-zh , 输出的是中文内容,可能是一些诗词,也可能是一些有趣的句子.
3. Cowsay
这是一只可以说话的 ASCII Cow.

还可以把 cowsay 和 fortune 结合到一起使用:
jh@linux:~$ fortune -s | cowsay -f duck ___________________________________ / 《闺怨》 作者:王昌龄 \ \ 闺中少妇不知愁,春日凝妆上翠楼。 忽见陌头杨柳色,悔教夫婿觅封侯。 / ----------------------------------- \ \ \ >()_ (__)__ _
这只cow不仅会说话,还会思考,不信你看:
jh@linux:~$ cowthink I am thinking! ________________ ( I am thinking! ) ---------------- o ^__^ o (oo)\_______ (__)\ )\/\ ||----w | || ||
还可通过cowsay -l 查看其它动物的名字,然后-f跟上动物名,如
jh@linux:~$ cowsay -f ghostbusters Who you Gonna Call ____________________ < Who you Gonna Call > -------------------- \ \ \ __---__ _- /--______ __--( / \ )XXXXXXXXXXX\v. .-XXX( O O )XXXXXXXXXXXXXXX- /XXX( U ) XXXXXXX\ /XXXXX( )--_ XXXXXXXXXXX\ /XXXXX/ ( O ) XXXXXX \XXXXX\ XXXXX/ / XXXXXX \__ \XXXXX XXXXXX__/ XXXXXX \__----> ---___ XXX__/ XXXXXX \__ / \- --__/ ___/\ XXXXXX / ___--/= \-\ ___/ XXXXXX '--- XXXXXX \-\/XXX\ XXXXXX /XXXXX \XXXXXXXXX \ /XXXXX/ \XXXXXX > _/XXXXX/ \XXXXX--__/ __-- XXXX/ -XXXXXXXX--------------- XXXXXX- \XXXXXXXXXXXXXXXXXXXXXXXXXX/ ""VXXXXXXXXXXXXXXXXXXV""
还可以这样玩,每次图形和文字都不一样:
jh@linux:~$ cowsay -f "$(ls /usr/share/cowsay/cows | sort -R | head -1)" "$(fortune -s)" _______________________________________ / Q: What's the difference betweeen USL \ | and the Graf Zeppelin? A: The Graf | | Zeppelin represented cutting edge | \ technology for its time. / --------------------------------------- \ / \ //\ \ |\___/| / \// \\ /0 0 \__ / // | \ \ / / \/_/ // | \ \ @_^_@'/ \/_ // | \ \ //_^_/ \/_ // | \ \ ( //) | \/// | \ \ ( / /) _|_ / ) // | \ _\ ( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-. (( / / )) ,-{ _ `-.|.-~-. .~ `. (( // / )) '/\ / ~-. _ .-~ .-~^-. \ (( /// )) `. { } / \ \ (( / )) .----~-.\ \-' .~ \ `. \^-. ///.----..> \ _ -~ `. ^-` ^-_ ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~ /.-~ jh@linux:~$ cowsay -f "$(ls /usr/share/cowsay/cows | sort -R | head -1)" "$(fortune -s)" _____________________________________ / You will be awarded the Nobel Peace \ \ Prize... posthumously. / ------------------------------------- \ \ \ \_ \ \\ \ \\/\ \ _\\/ \ / -\ \ / oo -\ \ / \ | ---\ -\ \--/ \ \ | -\ \ -\ -------------\ /-\ \ \-------/ ---/ \ \ |\ \ | / | | \ | \ | | / \ | | / \ | \ \ \| - /--------\ | o \+ +--------- \ | | | | \ | | \ | | | | \ | | \ | \ | | | | | \ \ | | | | +--+ ---+
4. xcowsay
如果你觉得 ASCII Cow 太单调了,这里还有一头图形化的Cow.

5.cmatrix
这是屏保,没错,就是屏保!从上往下输出无尽的字符串,类似<<黑客帝国>>中的矩阵效果.

5.yes
yes命令会一直重复输出字符串,用Ctrl+c终止.
jh@linux:~$ yes hello,world hello,world hello,world hello,world hello,world hello,world hello,world hello,world
6.toilet
输出由ASCII码组成的艺术字.

如果觉得白色不好看,还可以通过参数设置字体和颜色.
7. figlet
另一款在终端将字符进行图形化输出的软件.
jh@linux:~$ figlet linux _ _ | (_)_ __ _ ___ __ | | | '_ \| | | \ \/ / | | | | | | |_| |> < |_|_|_| |_|\__,_/_/\_\ jh@linux:~$ figlet linux -f script _ | | o | | _ _ |/ | / |/ | | | /\/ |__/|_/ | |_/ \_/|_/ /\_/ jh@linux:~$ figlet linux -f bubble _ _ _ _ _ / \ / \ / \ / \ / \ ( l | i | n | u | x ) \_/ \_/ \_/ \_/ \_/ jh@linux:~$ figlet linux -f shadow |_) | | __ \ | |\ \ / | | | | | | ` < _|_|_| _|\__,_| _/\_\ jh@linux:~$ figlet linux -f lean _/ _/ _/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/ _/
8. oneko
输入命令后会屏幕上会出现一直喵星人,鼠标移到哪它就跟到哪,鼠标不动的时候它就睡觉哈哈.

9. xeyes
输入它,屏幕上会出现一双眼睛,一直盯着你看,你的鼠标移到哪,它就盯到哪.

几个linux终端的有趣玩法的更多相关文章
- 【腾讯云的1001种玩法】几种在腾讯云建立WordPress的方法(Linux)(二)
版权声明:本文由张宁原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/126547001488207964 来源:腾云阁 ht ...
- Linux系统中有趣的命令(可以玩小游戏)
Linux系统中有趣的命令(可以玩小游戏) 前言 最近,我在看一些关于Linux系统的内容,这里面的内容是真的越学越枯燥,果然学习的过程还是不容易的.记得前几个月初学Linux时,有时候就会碰到小彩蛋 ...
- 【Microsoft Azure 的1024种玩法】五、基于Azure Cloud Shell 一站式创建Linux VM
[文章简介] Azure Cloud Shell 是一个用于管理 Azure 资源的.可通过浏览器访问的交互式经验证 shell. 它使用户能够灵活选择最适合自己工作方式的 shell 体验,无论是 ...
- 【Microsoft Azure 的1024种玩法】六、使用Azure Cloud Shell对Linux VirtualMachines 进行生命周期管理
[文章简介] Azure Cloud Shell 是一个用于管理 Azure 资源的.可通过浏览器访问的交互式经验证 shell. 它使用户能够灵活选择最适合自己工作方式的 shell 体验,本篇文章 ...
- 黑科技抢先尝(续) - Windows terminal中WSL Linux 终端的极简美化指南
目录 修改默认源,为apt-get安装提速 安装python 和 python pip 安装 zsh 安装powerline-font中的特定字体 安装powerline-shell 修改~目录下的配 ...
- [ssh]记ssh的几种玩法
得到一台Linux的服务器,我们可以进行以下几种玩法: 先讲一讲几个参数: -f 要求 ssh在执行命令前退至后台.它用于当ssh准备询问口令或密语,但是用户希望它在后台进行.该选项隐含了-n选 ...
- 4 个独特的 Linux 终端模拟器(转)
4 个独特的 Linux 终端模拟器 译自:https://www.linux.com/blog/learn/2018/12/4-unique-terminals-linux作者: Jack Wall ...
- 花里胡哨之自定义linux终端前缀显示
文章目录 1.先看默认的linux终端前缀 2.查看默认的终端前缀变量 3.符号所代表的意义 4.修改PS1变量,达成自定义效果 4.1.只显示主机名和完整目录 4.2.给他点颜色看看 5.谢幕 1. ...
- Linux终端打印命令使用介绍
常用linux打印命令 日常使用中或shell脚本中linux终端打印命令有echo和printf. echo命令 功能说明:显示文字.语 法:echo [-ne][字符串]或 echo [--he ...
随机推荐
- 一个Woker类,当id和name相同时,系统判断两个工人是相等的,打印工人对象时显示“工人:id和name”。
public class Worker { private int id; private String name; private double salary; public boolean equ ...
- react-native start 运行流程
在CMD下键入 C:\Node_JS\MyAwesomeProject>react-native start 运行流程: C:\Users\Grart\AppData\Roaming\npm\r ...
- SpringMVC-DispatcheServlet
1 HandlerMapping->HandlerAdapter->ViewResolver ->HandlerExceptionResolver 2
- 讨论SEO中是锚文本有效,还是纯文本有效呢?
现在很多SEO好友不断在讨论,在SEO优化中,到底是锚文本有效,还是纯文本有效呢? 在这里给大家举一下列子:如“张家口人才网”这样的就叫做锚文本,意思是在原有的文本中加上超级链接,指向到优化的网页上面 ...
- 场景7 Data Guard
场景7 Data Guard 官方文档 :Oracle Data Guard Concepts and Administration 用于数据容灾,通过主备库同步(主库将redo日志传送到备库,一个 ...
- Win Form程序线程点点
消息循环 Win32窗体程序基于消息驱动的,程序的模型就是一个用户触发事件消息->系统分发事件消息->程序处理事件的循环过程. .NET Win Form程序对消息循环进行了封装,可以看到 ...
- 4.3.5 使用Http:// (Https://)协议连接到ActiveMQ 2015年9月28日
用到的几点地方: 1.服务器端 ActiveMQ的文件activemq.xml中,预先要定义好有关本协议http的传输连接器格式,抓图如下: 2. 然后,开启Eclipse环境,在publish ...
- Unity 几种碰撞模式
1.OnControllerColliderHit 事件 (角色控制器使用) 2.Physics.Raycast 函数 3.OnTriggerEnter 事件 (碰撞物体使用,给碰撞物体添加碰撞器, ...
- 在浏览器地址栏前添加自定义的ico图标
首先,我们需要预先制作一个图标文件,大小为16*16像素.文件扩展名为ico,然后上传到相应目录中. 在HTML源文件“<head></head>”之间添加如下代码: < ...
- MyBatis中出现Mapped Statements collection does not contain value
引用csdn上一大神的解决方法: 经过排查,解决上述异常的过程如下: 1.确定xml文件中<mapper namespace=""/>中的namespace是否路径正确 ...