装完B就跑,这几个Linux指令真的Diǎo
本文介绍一些有趣的指令,实用或者可以装逼,不妨自己也来试试看;
文章目录
1 故事的开局
周末到了,部门里几个小伙伴约好了一起去吃小龙虾,这次说好杰哥请客,大家都迫不及待地下了楼,但是迟迟等不到杰哥;
诚哥抱怨到:这家伙,一天磨磨唧唧的不知道整个啥,等一下卖完了。
我们索性打了电话,弹了语音,依然没有回应,怎么回事,大家面面相觑,
小杨忽然补充道:最近996强度这么大,不会累倒,嗝屁了吧,不然一起上去看看吧。
于是我们一起上了楼。刚进办公室,发现杰哥端坐在电脑前,目不转睛,双手在键盘上疯狂输出;
我:还在搞啥呢?等你半天了,不见人。
杰哥看到我们过来,脸上露出了猥琐的笑容,挥着手招呼我们过去;
他说道:来得正好,给你们看点好东西。
2 杰哥的表演
2.1 sl
杰哥:先给你们看一下呼啸而过的火车;
安装指令如下;
sduo apt-get install sl
执行结果如下:

2.2 htop
杰哥:图形化Linux系统性能监测工具,6不6;
安装指令如下;
sduo apt-get install htop
执行结果如下;

2.3 gcp
杰哥:以前用cp复制文件总是看不懂进度,现在它来了,gcp给你解决烦恼;
安装指令如下;
sudo apt-get install gcp
执行结果如下;

2.4 hollywood
杰哥:无形装逼,最为致命,这个指令可以满足你们的需求,且看;
安装指令如下;
sudo apt-get install hollywood
执行结果如下;

2.5 cmatrix
杰哥:看过黑客帝国没,今天让你们看一下一条指令撸字符雨;
安装指令如下;
sudo apt-get install cmatrix
执行结果如下;

2.6 asciiview
杰哥:黑与白的世界依然可以五彩缤纷,致敬蜗壳;
安装指令如下;
sudo apt-get install aview imagemagick
asciiview kobe.jpg
执行结果如下;


2.7 ninvaders
杰哥:上班划个水,太空侵略者玩一下也不错;
安装指令如下;
sudo apt-get install ninvaders
执行结果如下;

2.8 bastet
杰哥:游戏暂时介绍两个吧,玩物丧志,俄罗斯方块了解一下;
安装指令如下;
sudo apt-get install bastet
执行结果如下;

2.9 pipe
杰哥:你们还别不服,我手撸的pipe脚本,炫不炫?
脚本如下所示;
#!/bin/bash
# The author of the original script is unknown to me. The first entry I can
# find was posted at 2010-03-21 09:50:09 on Arch Linux Forums (doesn't mean the
# poster is the author at all):
#
# Post your handy self made command line utilities (Page 37) / Programming & Scripting / Arch Linux Forums
#
# I, Yu-Jie Lin, made a few changes and additions:
#
# -p, -t, -R, and -C
#
# Screenshot: http://flic.kr/p/dRnLVj
# Screencast: http://youtu.be/5XnGSFg_gTk
#
# And push the commits to Gist:
#
# https://gist.github.com/4689307
#
# I, Devin Samarin, made a few changes and additions:
#
# -r can be 0 to mean "no limit".
# Reset cursor visibility after done.
# Cleanup for those people who want to quit with ^C
#
# Pushed the changes to https://gist.github.com/4725048
# hole1: https://gist.githubusercontent.com/livibetter/4689307/raw/949e43fe2962c2c97c8b1d974ff93dd053d9bd37/pipes.sh
# hole2: Fun On The Terminal Part 2
p=1
f=75 s=13 r=2000 t=0
w=$(tput cols) h=$(tput lines)
# ab -> idx = a*4 + b
# 0: up, 1: right, 2: down, 3: left
# 00 means going up , then going up -> ┃
# 12 means going right, then going down -> ┓
sets=(
"┃┏ ┓┛━┓ ┗┃┛┗ ┏━"
"│╭ ╮╯─╮ ╰│╯╰ ╭─"
"│┌ ┐┘─┐ └│┘└ ┌─"
"║╔ ╗╝═╗ ╚║╝╚ ╔═"
)
v="${sets[0]}"
RNDSTART=0
NOCOLOR=0
OPTIND=1
while getopts "p:t:f:s:r:RCh" arg; do
case $arg in
p) ((p=(OPTARG>0)?OPTARG:p));;
t) ((OPTARG>=0 && OPTARG<${#sets[@]})) && v="${sets[OPTARG]}";;
f) ((f=(OPTARG>19 && OPTARG<101)?OPTARG:f));;
s) ((s=(OPTARG>4 && OPTARG<16 )?OPTARG:s));;
r) ((r=(OPTARG>=0)?OPTARG:r));;
R) RNDSTART=1;;
C) NOCOLOR=1;;
h) echo -e "Usage: $(basename $0) [OPTION]..."
echo -e "Animated pipes terminal screensaver.\n"
echo -e " -p [1-]\tnumber of pipes (D=1)."
echo -e " -t [0-$((${#sets[@]} - 1))]\ttype of pipes (D=0)."
echo -e " -f [20-100]\tframerate (D=75)."
echo -e " -s [5-15]\tprobability of a straight fitting (D=13)."
echo -e " -r LIMIT\treset after x characters, 0 if no limit (D=2000)."
echo -e " -R \t\trandom starting point."
echo -e " -C \t\tno color."
echo -e " -h\t\thelp (this screen).\n"
exit 0;;
esac
done
cleanup() {
tput rmcup
tput cnorm
exit 0
}
trap cleanup SIGHUP SIGINT SIGTERM
for (( i=1; i<=p; i++ )); do
c[i]=$((i%8)) n[i]=0 l[i]=0
((x[i]=RNDSTART==1?RANDOM*w/32768:w/2))
((y[i]=RNDSTART==1?RANDOM*h/32768:h/2))
done
tput smcup
tput reset
tput civis
while ! read -t0.0$((1000/f)) -n1; do
for (( i=1; i<=p; i++ )); do
# New position:
((${l[i]}%2)) && ((x[i]+=-${l[i]}+2,1)) || ((y[i]+=${l[i]}-1))
# Loop on edges (change color on loop):
((${x[i]}>w||${x[i]}<0||${y[i]}>h||${y[i]}<0)) && ((c[i]=RANDOM%8))
((x[i]=(x[i]+w)%w))
((y[i]=(y[i]+h)%h))
# New random direction:
((n[i]=RANDOM%s-1))
((n[i]=(${n[i]}>1||${n[i]}==0)?${l[i]}:${l[i]}+${n[i]}))
((n[i]=(${n[i]}<0)?3:${n[i]}%4))
# Print:
tput cup ${y[i]} ${x[i]}
[[ $NOCOLOR == 0 ]] && echo -ne "\033[1;3${c[i]}m"
echo -n "${v:l[i]*4+n[i]:1}"
l[i]=${n[i]}
done
((r>0 && t*p>=r)) && tput reset && tput civis && t=0 || ((t++))
done
cleanup
执行结果如下;

2.10 oneko
杰哥:我还在这里养了一只猫,你们看看,可以追着鼠标跑。
安装指令如下;
sudo apt-get install oneko
执行结果如下;

3 博主的炸弹
杰哥 秀完这几个指令,得意地说:怎么样?怎么样!!牛不牛逼?Diao不Diao?
扬帆 不屑地说:除了装逼,这几个指令还能干点啥?我就问你?
诚哥 忽然补刀:啥也不是。
我:杰哥,时间差不多了,等一下龙虾卖完了。
杰哥却依然端坐:我这还有几个指令没秀,马上马上。
我心想:莫非杰哥不想请这顿龙虾,这是缓兵之计?为了兄弟们的龙虾,我得拿出炸弹
装完B就跑,这几个Linux指令真的Diǎo的更多相关文章
- 转:装完Centos7提示Initial setup of CentOS Linux 7 (core)
在用U盘装完CentOS后,重新开机启动后显示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License inf ...
- 装完Centos7提示Initial setup of CentOS Linux 7 (core)
在用U盘装完CentOS后,重新开机启动后显示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License inf ...
- 装完Centos7提示Initial setup of CentOS Linux 7 (core)(转载)
http://www.th7.cn/system/lin/201603/156762.shtml
- [转]装完CentOS后,重新开机启动后显示: Initial setup of CentOS Linux 7 (core)
转:装完Centos7提示Initial setup of CentOS Linux 7 (core) 在用U盘装完CentOS后,重新开机启动后显示: Initial setup of Cent ...
- 重回ubutntu12.04小记(装完ubuntu做的几件事)
原来一直是在windows下用虚拟机跑redhat 和debian 做实验和一些工程,以前也装过ubuntu和windows双系统,但是换电脑后,就一直懒得捣鼓了. 现在,由于长期需要在linux上做 ...
- 装完RHEL7后,重新开机启动后显示:Initial setup of CentOS Linux 7 (core) 提示license报错
装完RHEL7后,重新开机启动后显示: 1) [x] Creat user 2) [!] License information (no user will be created) (license ...
- ubuntu,装完PYTHON3 pip3 install 报错
ubuntu,装完PYTHON3 pip3 install 报错CalledProcessError: Command 'lsb_release -a' returned non-zero exit ...
- mac用BootCamp装windows装完之后驱动问题
刚装完会有一个临时盘里面找到BootCamp文件夹然后运行setup.exe,装完即可.
- mysql装完计算机管理里面没mysql服务怎么解决(转)
mysql装完计算机管理里面没mysql服务怎么解决 2017年07月04日 09:32:51 XC_Echizen 阅读数:7335 标签: mysql计算机mysql服务找不到mysql服务 更多 ...
随机推荐
- 一个好的olap框架
一.何为一个好的olap框架? 框架大概分为两种: (1)底层技术框架,专注于抽象底层技术,如网络通信netty.中间件kafka等 (2)开发人员框架,专注于提高开发效率,如spring的面向切面和 ...
- 阿里面试官让我实现一个线程安全并且可以设置过期时间的LRU缓存,我蒙了!
目录 1. LRU 缓存介绍 2. ConcurrentLinkedQueue简单介绍 3. ReadWriteLock简单介绍 4.ScheduledExecutorService 简单介绍 5. ...
- PHP xml 外部实体注入漏洞学习
XML与xxe注入基础知识 1.XMl定义 XML由3个部分构成,它们分别是:文档类型定义(Document Type Definition,DTD),即XML的布局语言:可扩展的样式语言(Exten ...
- [YII2] 文件上传类
//测试文件上传类 public function actionCreate() { $model = new Lvyou(); $upload_model = new \app\models\Upl ...
- 【轮询】【ajax】【js】【spring boot】ajax超时请求:前端轮询处理超时请求解决方案 + spring boot服务设置接口超时时间的设置
场景描述: ajax设置timeout在本机测试有效,但是在生产环境等外网环境无效的问题 1.ajax的timeout属性设置 前端请求超时事件[网络连接不稳定时候,就无效了] var data = ...
- java中String StringBuilder StringBuffer比较和效率(性能)测试
string stringbuilder stringbuffer三者的区别 从JDK源码看,String.StringBuilder.StringBuffer都是存放在char[] 数组字符串. 简 ...
- 微信小程序填坑---小程序支付
因为公司刚刚重新做了网站,所以也吧公众号和小程序提上了日程,在公众号里面没有什么问题,直接按照官方文档进行代码编写.调试,然后就解决了公众号内支付的问题. 因为小程序提供了<webview> ...
- Metasploit学习笔记(一)
1.更新 apt-get update:更新源 apt-get upgrade:更新软件包 apt-get dist-upgrade:升级系统 2. Metasploit基础 2.1专业名词 Auxi ...
- vue-cli3.0 gui初体验
为什么80%的码农都做不了架构师?>>> 介绍 新版的vuecli3.0提供了一个vue ui这个命令,这个命令是做什么的呢,这里引用官网的一段介绍 vue ui 你可以通过 v ...
- 《WCF技术内幕》翻译3:第1部分_第1章_蓝月亮:普遍需求和普遍概念
第一部分:WCF介绍 章节目录: 第1章:蓝月亮 第2章:面向服务 第3章:消息交换模式.拓扑和编排 第4章:WCF 101 第1章:蓝月亮 商业和市场对软件系统新 ...