lolcat——Linux路上不是只有黑白
2018-01-22 21:43
295 查看
lolcat——Make your Terminal Colourful
lolcat一个在Linux终端中输出彩虹特效的命令行工具。他是一个针对Linux,BSD和OSX平台的工具,类似于
cat命令,并为
cat的输出添加彩虹般的色彩。
Installing
这里我们以windows10内嵌的ubuntu子系统来进行操作,跟树莓派上的操作是一样的。首先打开终端,已经把子系统路径加入系统环境变量,直接
Win+r,输入
bash,树莓派中可以直接
Alt + T,这时候用到
apt-get命令,如有需求自行复习在终端中输入:
sudo apt-get install lolcat # it will be installing automatically Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: lolcat 0 upgraded, 1 newly installed, 0 to remove and 88 not upgraded. Need to get 5,514 B of archives. After this operation, 70.7 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe lolcat all 42.0.99-1 [5,514 B] Fetched 5,514 B in 9s (556 B/s) Selecting previously unselected package lolcat. (Reading database ... 51497 files and directories currently installed.) Preparing to unpack .../lolcat_42.0.99-1_all.deb ... Unpacking lolcat (42.0.99-1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up lolcat (42.0.99-1) ...
How to use
安装好之后,在使用之前我们先通过命令行来了解它可用的选项和其帮助文档。终端输入:lolcat -h
很调皮,只看文档说明就能看出来这个软件的效果:
Usage: lolcat [OPTION]... [FILE]... Concatenate FILE(s), or standard input, to standard output. With no FILE, or when FILE is -, read standard input. --spread, -p <f>: Rainbow spread (default: 3.0) --freq, -F <f>: Rainbow frequency (default: 0.1) --seed, -S <i>: Rainbow seed, 0 = random (default: 0) --animate, -a: Enable psychedelics --duration, -d <i>: Animation duration (default: 12) --speed, -s <f>: Animation speed (default: 20.0) --force, -f: Force color even when stdout is not a tty --version, -v: Print version and exit --help, -h: Show this message Examples: lolcat f - g Output f's contents, then stdin, then g's contents. lolcat Copy standard input to standard output. fortune | lolcat Display a rainbow cookie. Report lolcat bugs to <http://www.github.org/busyloop/lolcat/issues> lolcat home page: <http://www.github.org/busyloop/lolcat/> Report lolcat translation bugs to <http://speaklolcat.com/>
上面就是参数的详细说明,这样看好像没有效果,废话说完了,直接上图:
哈哈 看到效果了吧,效果还是极其美妙的。我们可以这样用:
sudo ls -al | lolcat -F 0.3
那么就会出现这样的效果:
这个样子可以玩一年,多试试不同的参数,总能带来不一样的惊喜。
After
这个软件是我最先接触到的比较好玩,无聊,有趣的,当命令行遇到lolcat,改变了对命令行的认识,仿佛像打开新世界的大门,充满着孩童般的好奇。这段主要提及到
lolcat的安装使用,具体怎么玩,自己探索或者可以跟lolcat :一个在 Linux 终端中输出彩虹特效的命令行工具 进行交流。
愿Linux路上不孤单。
相关文章推荐
- lolcat :一个在Linux 终端中输出彩虹特效的命令行工具
- lolcat :一个在 Linux 终端中输出彩虹特效的命令行工具
- Ubuntu老大:“企业Linux不是只有Red Hat”
- 使用cat而不是rm来清空文件内容--用Enki学Linux系列(9)
- Linux基础命令:文本处理工具之 split , cat
- linux cat 命令详解
- linux学习第七篇:环境变量PATH,命令cp,mv以及文档查看cat,more,less,head,tail
- 卡马克认为Linux仍不是商业上可行游戏平台
- linux中cat命令
- 每天一个linux命令——cat
- Linux选型:开源不是免费 首选红帽和SUSE
- Linux常用终端命令之cat、grep、echo
- (转载)(指引自己)Linux学习路上的体会()
- Linux命令:目录重命名与移动mv,删除文件rm,目录创建mkdir删除rmdir,查看file,cat,more,tail,head
- linux中cat、more、less命令区别详解
- Linux下cat <<eof替换多行echo
- 【Linux】linux查看日志文件内容命令tail、cat、tac、head、echo
- 【linux】cat命令
- Linux的cat、more、less的区别
- 【每天一个Linux命令】25. 查看文件命令(cat/more/less/tail/tac/nl/od)