装完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服务 更多 ...
随机推荐
- stand up meeting 12/17/2015
part 组员 今日工作 工作耗时/h 明日计划 工作耗时/h UI 冯晓云 建立基本的pdf阅读器界面框架 4 开始实现界面框架 4 foxit PDF ...
- Leetcode802-找到最终的安全状态(Python3)
刚开始没思路,还以为是利用二维矩阵直接标记节点间的有向路径,最后循环遍历就能得到结果,结果最后发现方向是错的,之后看了大佬们写的代码,发现原来是用出度来实现节点是否安全的. 照着大佬们的思路重新写了一 ...
- Key Set HDU - 5363
这个题目套公式 2^(n-1)-1,再来个快速幂基本上就可以AC了 写这个题目的: 公式容易推到错: 容易写成 2^n-1/2...这样写出来结果也不错 但是一直哇 AC: #include< ...
- code-breaking picklecode中对signed_cookies引擎分析
最近做了 ph 牛的 code-breaking,在做 picklecode 这一题时,没有搞懂那个 django 的 signed_cookies 引擎对 session 的操作,就 debug 了 ...
- 【题解】P3349 [ZJOI2016]小星星 - 子集dp - 容斥
P3349 [ZJOI2016]小星星 声明:本博客所有题解都参照了网络资料或其他博客,仅为博主想加深理解而写,如有疑问欢迎与博主讨论✧。٩(ˊᗜˋ)و✧*。 题目描述 小 \(Y\) 是一个心灵手巧 ...
- 大数据MapReduce相关的运维题
1.在集群节点中/usr/hdp/2.4.3.0-227/hadoop-mapreduce/目录下,存在一个案例 JAR 包 hadoop-mapreduce-examples.jar.运行 JAR ...
- Websec level 30
前言 昨天在易霖博搞的网络安全与执法竞赛看到的一道web题,实际上就是用两个原题凑起来的.. 不过后面的一关没见过这里简单记录一下 第一关 打开是个登录界面,和BJDCTF的简单注入一模一样,连密码都 ...
- python之实现图像的手绘效果
https://blog.csdn.net/riba2534/article/details/74152285 原图: b: c: d: 最终图:
- python-trade
https://tool.lu/pyc/在线反编译pyc import base64 correct = 'XlNkVmtUI1MgXWBZXCFeKY+AaXNt' flag = base64.b6 ...
- python学习笔记(四)---用户输入与while循环
用户输入 函数input demo1: message = input("all you input is chars:") print(message) demo2: 由inpu ...