来晒晒你使用过的 Linux 命令的 top 10 吧!

2014-04-18 23:50:14 +08:00
 yxjxx
刚刚在 http://talk.linuxtoy.org/using-cli/ 看到了一条命令可以显示你使用过的命令的top10.
而且网页使用的类似的ppt效果也超级赞呢!


命令是:
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
20228 次点击
所在节点    Linux
176 条回复
zuroyu
2014-04-19 00:13:20 +08:00
1 1472 56.0335% git
2 202 7.68938% ls
3 189 7.19452% sudo
4 161 6.12866% cd
5 70 2.66464% ssh
6 53 2.01751% ll
7 48 1.82718% python
8 42 1.59878% tail
9 41 1.56072% vi
10 32 1.21812% cat
pubby
2014-04-19 00:24:20 +08:00
1 106 21.1577% ls
2 91 18.1637% global
3 53 10.5788% screen
4 44 8.78244% php
5 41 8.18363% cd
6 20 3.99202% svn
7 18 3.59281% tail
8 18 3.59281% curl
9 17 3.39321% rm
10 16 3.19361% man

第二条不准, global是挂在emacs保存文件hook上的
echo1937
2014-04-19 00:26:13 +08:00
1 83 8.12929% man
2 70 6.85602% ll
3 69 6.75808% ls
4 63 6.17042% vim
5 61 5.97453% cat
6 48 4.70127% ifconfig
7 47 4.60333% netstat
8 37 3.6239% cd
9 36 3.52595% echo
10 34 3.33007% let

我好低端
zhsso
2014-04-19 00:37:08 +08:00
1 1551 27.3545% ls
2 1016 17.9189% cd
3 521 9.18871% git
4 466 8.21869% vim
5 257 4.53263% ssh
6 223 3.93298% rm
7 189 3.33333% go
8 166 2.92769% ping
9 112 1.97531% cat
10 86 1.51675% sudo
hzlzh
2014-04-19 00:43:19 +08:00
1 1779 23.6349% grunt
2 1140 15.1455% cd
3 767 10.19% ls
4 367 4.87578% npm
5 340 4.51707% git
6 315 4.18493% open
7 280 3.71994% ssh
8 277 3.68009% brew
9 275 3.65351% wget
10 230 3.05567% ping
lu18887
2014-04-19 00:50:33 +08:00
1 396 39.5604% ls
2 128 12.7872% cd
3 59 5.89411% python
4 50 4.995% sudo
5 48 4.7952% vi
6 37 3.6963% rails
7 28 2.7972% git
8 25 2.4975% tmux
9 16 1.5984% pwd
10 15 1.4985% l


文件夹浏览永远是命令行的痛……
ayang23
2014-04-19 00:55:41 +08:00
1 162 16.1838% sudo
2 152 15.1848% python
3 140 13.986% cd
4 111 11.0889% ls
5 62 6.19381% ssh
6 41 4.0959% make
7 22 2.1978% git
8 20 1.998% mysql
9 18 1.7982% htop
10 17 1.6983% cat
总之就是sudo python啦
Suanlatang
2014-04-19 00:57:16 +08:00
1 170 33.9321% ssh
2 144 28.7425% ping
3 72 14.3713% sudo
4 17 3.39321% cd
5 16 3.19361% cf
6 14 2.79441% python
7 14 2.79441% ls
8 10 1.99601% git
9 8 1.59681% rvm
10 6 1.1976% pod
kodango
2014-04-19 01:01:25 +08:00
1 125 24.9501% vim
2 64 12.7745% ls
3 60 11.976% git
4 38 7.58483% python
5 28 5.58882% cd
6 27 5.38922% sh
7 14 2.79441% cp
8 11 2.19561% diff
9 11 2.19561% cat
10 9 1.79641% ll
cst4you
2014-04-19 02:26:34 +08:00
1 99 19.7605% apt-get
2 87 17.3653% service
3 43 8.58283% cd
4 38 7.58483% vim
5 33 6.58683% git
6 30 5.98802% ls
7 24 4.79042% top
8 21 4.19162% cat
9 18 3.59281% ps
10 17 3.39321% tail

服务器上的...
fatpa
2014-04-19 02:35:18 +08:00
1 2331 23.3123% sr
2 1781 17.8118% ssh
3 1201 12.0112% git
4 811 8.11081% cd
5 508 5.08051% ping
6 456 4.56046% ls
7 297 2.9703% vi
8 259 2.59026% sudo
9 198 1.9802% curl
10 194 1.94019% cat

……果然我每天都在登录服务器
Livid
2014-04-19 02:46:18 +08:00
1 107 21.3147% exit
2 88 17.5299% ansible
3 50 9.96016% cd
4 45 8.96414% ssh
5 23 4.58167% git
6 21 4.18327% ls
7 20 3.98406% sudo
8 17 3.38645% curl
9 16 3.18725% dscacheutil
10 14 2.78884% ping
inufo
2014-04-19 02:51:29 +08:00
1 66 13.2% ssh
2 54 10.8% cd
3 35 7% git
4 33 6.6% php
5 33 6.6% ls
6 24 4.8% brew
7 16 3.2% ping
8 16 3.2% forever
9 16 3.2% aapt
10 13 2.6% open
sinxccc
2014-04-19 02:54:08 +08:00
1 200 19.98% ls
2 167 16.6833% grep
3 167 16.6833% cd
4 56 5.59441% make
5 54 5.39461% ssh
6 34 3.3966% el
7 29 2.8971% tt
8 24 2.3976% svn
9 24 2.3976% scp
10 16 1.5984% ssd

el 是 Emacs 的马甲
tt 是 tmux attach -t 的马甲
ssd 是 svn diff 的马甲…
Croath
2014-04-19 03:02:27 +08:00
1 269 12.3394% ls
2 170 7.79817% cd
3 144 6.6055% clear
4 130 5.9633% git
5 112 5.13761% vim
6 84 3.85321% rails
7 79 3.62385% ping
8 77 3.53211% brew
9 61 2.79817% sudo
10 52 2.38532% gem

哈哈哈只有我clear使用率那么高么。。。
话说有ping有点儿情理之中意料之外

这些命令把自己的工种都暴露了。。。
ericls
2014-04-19 03:06:56 +08:00
1 145 15.8991% ls
2 134 14.693% python
3 110 12.0614% cd
4 83 9.10088% git
5 61 6.6886% vim
6 49 5.37281% svn
7 47 5.15351% sudo
8 30 3.28947% source
9 28 3.07018% rm
10 27 2.96053% pip
sinxccc
2014-04-19 03:15:58 +08:00
@Croath 来根据结果猜职业吧:)
Lucups
2014-04-19 03:29:03 +08:00
1 52 27.5132% su
2 17 8.99471% apt-cyg
3 15 7.93651% passwd
4 15 7.93651% ls
5 14 7.40741% cd
6 11 5.82011% vim
7 7 3.7037% python
8 7 3.7037% git
9 5 2.6455% ll
10 5 2.6455% id
(PS: 上个月新买的笔记本, Win8.1+Cygwin,在cygwin下跑的命令)
xhacker
2014-04-19 04:07:00 +08:00
1 974 17.6737% git
2 611 11.0869% ssh
3 489 8.87316% j
4 297 5.38922% python
5 280 5.08075% cd
6 259 4.69969% ls
7 202 3.6654% sh
8 140 2.54037% sudo
9 133 2.41336% brew
10 124 2.25005% pod
dorentus
2014-04-19 04:29:36 +08:00
OS X
====
| 1 105 20.9581% git
| 2 83 16.5669% cd
| 3 43 8.58283% vi
| 4 30 5.98802% cat
| 5 24 4.79042% brew
| 6 20 3.99202% npm
| 7 18 3.59281% rm
| 8 16 3.19361% make
| 9 16 3.19361% lolcat
| 10 15 2.99401% printf

Linux
====
| 1 100 19.9601% sudo
| 2 98 19.5609% ls
| 3 57 11.3772% cd
| 4 45 8.98204% ll
| 5 33 6.58683% git
| 6 23 4.59082% fortune-zh
| 7 14 2.79441% make
| 8 11 2.19561% cat
| 9 9 1.79641% vi
| 10 7 1.39721% ag

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/109153

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX