来晒晒你使用过的 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 条回复
lijinma
2014-04-19 09:54:03 +08:00
1 219 15.6877% ll
2 130 9.31232% cd
3 122 8.73926% mocha
4 100 7.16332% git
5 68 4.87106% subl
6 63 4.51289% say
7 46 3.29513% vi
8 45 3.2235% pwd
9 40 2.86533% j
10 38 2.72206% open
lm902
2014-04-19 09:55:12 +08:00
1 98 27.1468% sudo

2 33 9.14127% cd

3 30 8.31025% ls

4 19 5.26316% vim

5 19 5.26316% tail

6 19 5.26316% rm

7 14 3.87812% python

8 8 2.21607% top

9 8 2.21607% ps

10 8 2.21607% nohup
lm902
2014-04-19 09:56:39 +08:00
主要是我大部分都写成脚本或者sudo su执行了。。。
chenwl
2014-04-19 10:09:26 +08:00
1 242 24.6436% ls
2 151 15.3768% cd
3 95 9.67413% vim
4 51 5.19348% exit
5 47 4.78615% git
6 27 2.74949% cat
7 21 2.13849% rm
8 17 1.73116% mv
9 16 1.62933% service
10 16 1.62933% screen
assad
2014-04-19 10:11:24 +08:00
1 257 25.6743% cd
2 228 22.7772% ls
3 38 3.7962% tail
4 25 2.4975% go
5 22 2.1978% yum
6 21 2.0979% python
7 20 1.998% git
8 19 1.8981% ps
9 18 1.7982% top
10 18 1.7982% mv
freefcw
2014-04-19 10:11:42 +08:00
mac:

1 740 16.4189% ls
2 593 13.1573% cd
3 440 9.76259% git
4 220 4.8813% yd
5 137 3.03972% j
6 112 2.48502% wget
7 112 2.48502% vim
8 109 2.41846% adb
9 103 2.28533% mv
10 102 2.26315% exit
freefcw
2014-04-19 10:12:49 +08:00
@kehr 太长了。。我直接yd了
redchamber
2014-04-19 10:17:24 +08:00
我的:

1 144 28.7425% git
2 94 18.7625% ls
3 81 16.1677% cd
4 31 6.18762% npm
5 16 3.19361% supervisor
6 15 2.99401% ps
7 14 2.79441% sudo
8 12 2.39521% python
9 12 2.39521% cat
10 10 1.99601% pip


git用的最多了! 然后就是 python和node相关的一些.
wangofjian
2014-04-19 10:19:17 +08:00
1 215 21.4143% sh
2 204 20.3187% cat
3 177 17.6295% vim
4 87 8.66534% sed
5 83 8.26693% awk
6 65 6.4741% ll
7 29 2.88845% cd
8 22 2.19124% grep
9 20 1.99203% comm
10 15 1.49402% wc
zxc111
2014-04-19 10:20:26 +08:00
1 186 12% sudo
2 183 11.8065% vi
3 141 9.09677% git
4 121 7.80645% ls
5 116 7.48387% byobu
6 114 7.35484% python
7 110 7.09677% rvm
8 81 5.22581% exit
9 61 3.93548% fg
10 54 3.48387% ps

vps上的。。。
smilngwang
2014-04-19 10:24:43 +08:00
1 296 29.5704% ls
2 153 15.2847% vim
3 124 12.3876% cd
4 112 11.1888% clear
5 71 7.09291% grep
6 55 5.49451% python
7 45 4.4955% git
8 18 1.7982% pwd
9 17 1.6983% mv
10 12 1.1988% ln
smilngwang
2014-04-19 10:26:54 +08:00
@Croath 输命令前不clear感觉不爽。。。
lifanxi
2014-04-19 10:32:32 +08:00
date第二多……因为我在秒杀前会很强迫的反复看时间,另外,工作中还经常需要用date -d @ 把时间戳转换为可读的时间。

1 63 24.6094% ssh
2 26 10.1562% date
3 25 9.76562% git
4 21 8.20312% make
5 14 5.46875% sudo
6 10 3.90625% ls
7 10 3.90625% g++
8 8 3.125% ping
9 7 2.73438% rm
10 7 2.73438% cd
panlilu
2014-04-19 10:39:57 +08:00
那个啥,git我应该用的最多,但是习惯用客户端了- -。

1 1020 19.5365% ls
2 935 17.9084% cd
3 688 13.1776% ssh
4 318 6.09079% rails
5 236 4.52021% ping
6 169 3.23693% cap
7 165 3.16031% hexo
8 121 2.31756% ll
9 102 1.95365% vi
10 94 1.80042% sudo
iptux
2014-04-19 10:46:18 +08:00
1 266 26.5734% git
2 112 11.1888% cd
3 69 6.89311% sudo
4 66 6.59341% adb
5 51 5.09491% ll
6 41 4.0959% make
7 33 3.2967% exit
8 29 2.8971% rm
9 28 2.7972% python
10 28 2.7972% find
cai314494687
2014-04-19 10:48:55 +08:00
1 981 32.3123% git
2 384 12.6482% cd
3 339 11.166% sudo
4 172 5.66535% ls
5 123 4.05138% brew
6 85 2.79974% chmod
7 81 2.66798% python
8 80 2.63505% vim
9 56 1.84453% rvm
10 47 1.54809% php
amyangfei
2014-04-19 10:52:37 +08:00
mac上
1 1413 14.1314% ls
2 1152 11.5212% vim
3 535 5.35054% exit
4 465 4.65047% cd
5 440 4.40044% make
6 338 3.38034% j
7 322 3.22032% grep
8 321 3.21032% ping
9 304 3.0403% gcc
10 279 2.79028% ssh
一台测试的Linux
1 558 18.6622% ls
2 377 12.6087% make
3 366 12.2408% vim
4 144 4.81605% echo
5 132 4.41472% tmux
6 121 4.04682% cd
7 102 3.41137% exit
8 99 3.31104% gcc
9 49 1.6388% sudo
10 41 1.37124% ..
lvwzhen
2014-04-19 10:55:35 +08:00
1 262 19.1801% git
2 246 18.0088% ls
3 89 6.51537% gst
4 43 3.14788% vi
5 38 2.78184% npm
6 35 2.56223% ssh
7 35 2.56223% brew
8 34 2.48902% ping
9 31 2.2694% douban.fm
10 21 1.53734% fanyi
wuming
2014-04-19 11:03:06 +08:00
1 52 22.0339% ls
2 44 18.6441% sudo
3 26 11.0169% cd
4 15 6.35593% yaourt
5 12 5.08475% startx
6 9 3.81356% git
7 7 2.9661% keepassx
8 6 2.54237% rm
9 5 2.11864% poweroff
10 4 1.69492% vim
jankerli
2014-04-19 11:03:42 +08:00
1 669 19.6765% cd
2 654 19.2353% svn
3 501 14.7353% ls
4 279 8.20588% git
5 171 5.02941% grunt
6 110 3.23529% sudo
7 84 2.47059% vi
8 78 2.29412% ssh
9 76 2.23529% pwd
10 61 1.79412% ifconfig

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

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

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

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

© 2021 V2EX