发现几个好玩的命令

1.cmatrix(还记得黑客帝国的字符流特效吗,就是他,hhh)

root@Mke:~# apt install cmatrix && cmatrix

 

 2.统计常用的10个命令

history |
awk '{CMD[$2]++;count++;}END \
{ for (a in CMD)print CMD[a] " " \
CMD[a]/count*100 "% " a;}' |
grep -v "./" |
column -c3 -s " " -t |
sort -nr |
nl |
head -n10

3.自动纠错(这里主要是目录)

[root@localhost chanzhieps]# shopt -s cdspell

 假如cd /ect,(实际是想切换到etc)

 

posted @ 2020-03-29 14:25  Mke2fs  阅读(281)  评论(0编辑  收藏  举报