来晒晒你使用过的 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 条回复
dorentus
2014-04-19 04:40:21 +08:00
我的里面永远不会出现 exit…都是直接按的 ctrl-d
基本不会有 ruby,脚步都是写好了 sheebang 可执行的,irb 倒是应该会有一些吧
aggron
2014-04-19 05:46:29 +08:00
1 185 36.2745% vim
2 100 19.6078% ls
3 23 4.5098% ifconfig
4 18 3.52941% psql
5 16 3.13725% tc
6 14 2.7451% reboot
7 10 1.96078% sudo
8 7 1.37255% freeradius
9 7 1.37255% chmod
10 7 1.37255% cd
尽然有reboot....
ChiangDi
2014-04-19 07:29:19 +08:00
@Croath 为什么要用clear,直接ctrl-L就好了...
ldehai
2014-04-19 07:31:07 +08:00
1 164 32.7345% ls
2 133 26.5469% cd
3 33 6.58683% svn
4 20 3.99202% pwd
5 19 3.79242% ssh
6 19 3.79242% mvn
7 12 2.39521% vi
8 9 1.79641% scp
9 6 1.1976% find
10 5 0.998004% rm

cd基本上在前三名呀
anheiyouxia
2014-04-19 07:31:31 +08:00
1 272 27.1728% ls
2 160 15.984% cd
3 56 5.59441% wget
4 48 4.7952% rm
5 46 4.5954% yum
6 42 4.1958% mv
7 36 3.5964% screen
8 30 2.997% pm2
9 27 2.6973% vim
10 21 2.0979% ll


哈哈,我用vps当中转下载器了(╯3╰)
laputaprince
2014-04-19 08:08:28 +08:00
1 77 15.3693% git
2 69 13.7725% ll
3 42 8.38323% cd
4 39 7.78443% vim
5 34 6.78643% curl
6 28 5.58882% gs
7 18 3.59281% pwd
8 17 3.39321% yaourt
9 16 3.19361% dualscreen
10 14 2.79441% find
GTim
2014-04-19 08:25:10 +08:00
1 89 19.6468% cd
2 53 11.6998% brew
3 49 10.8168% git
4 47 10.3753% ls
5 28 6.18102% go
6 20 4.41501% ssh
7 17 3.75276% ping
8 11 2.42826% make
9 10 2.20751% php
10 10 2.20751% lsof
liunan1321
2014-04-19 08:26:17 +08:00
1 1920 19.2019% ls
2 1864 18.6419% cd
3 657 6.57066% vim
4 544 5.44054% vagrant
5 526 5.26053% go
6 403 4.0304% sudo
7 266 2.66027% ping
8 248 2.48025% c
9 225 2.25023% brew
10 216 2.16022% bee
mahone3297
2014-04-19 08:27:36 +08:00
不得不说,这条统计命令写的很赞。。。
vangie
2014-04-19 08:30:53 +08:00
1 454 12.7492% ls
2 403 11.317% cd
3 398 11.1766% git
4 196 5.50407% ssh
5 188 5.27942% brew
6 168 4.71778% vim
7 124 3.48217% rake
8 90 2.52738% rvm
9 78 2.1904% rm
10 71 1.99382% rails
7anshuai
2014-04-19 08:35:02 +08:00
1 136 21.6561% ls
2 111 17.6752% cd
3 68 10.828% sudo
4 44 7.00637% vim
5 29 4.61783% git
6 21 3.34395% which
7 18 2.86624% npm
8 16 2.54777% mv
9 16 2.54777% g++
10 10 1.59236% rm
sanddudu
2014-04-19 08:45:49 +08:00
1 378 37.7622% cd
2 109 10.8891% vi
3 88 8.79121% ls
4 41 4.0959% rm
5 33 3.2967% forever
6 23 2.2977% wget
7 19 1.8981% mv
8 19 1.8981% apt-get
9 17 1.6983% make
10 15 1.4985% tar
wuxqing
2014-04-19 08:48:15 +08:00
1 299 29.8701% ll
2 177 17.6823% df
3 169 16.8831% cd
4 88 8.79121% du
5 38 3.7962% screen
6 31 3.0969% rm
7 27 2.6973% vim
8 18 1.7982% sh
9 18 1.7982% curl
10 16 1.5984% top
sohoer
2014-04-19 09:04:11 +08:00
1 413 41.2587% sudo
2 221 22.0779% cp
3 139 13.8861% ls
4 107 10.6893% cd
5 18 1.7982% crontab
6 13 1.2987% vi
7 8 0.799201% top
8 7 0.699301% su
9 7 0.699301% source
10 7 0.699301% mysql
saeed
2014-04-19 09:20:57 +08:00
1 1835 18.3518% git
2 1795 17.9518% vim
3 1550 15.5016% cd
4 1485 14.8515% sudo
5 558 5.58056% ll
6 394 3.94039% grep
7 319 3.19032% rm
8 151 1.51015% mv
9 89 0.890089% php
10 85 0.850085% cp
kehr
2014-04-19 09:22:34 +08:00
1 233 12.5067% ls
2 194 10.4133% cd
3 189 10.1449% sudo
4 106 5.68975% vim
5 86 4.61621% svn
6 84 4.50886% git
7 79 4.24047% exit
8 67 3.59635% trans
9 51 2.73752% clear
10 50 2.68384% ll

svn 居然比 git 还高,这不科学~。trans 是我在命令行下的有道翻译工具,名字自己起的,用起来很赞!
senghoo
2014-04-19 09:24:59 +08:00
1 745 22.8178% ls
2 550 16.8453% cd
3 334 10.2297% git
4 170 5.20674% ssh
5 165 5.0536% cat
6 78 2.38897% vim
7 76 2.32772% cp
8 71 2.17458% grep
9 68 2.0827% python
10 67 2.05207% brew
liushuaikobe
2014-04-19 09:32:36 +08:00
1 1810 18.1018% cd
2 1358 13.5814% python
3 1351 13.5114% git
4 714 7.14071% ll
5 490 4.90049% vim
6 449 4.49045% ssh
7 390 3.90039% ls
8 291 2.91029% sudo
9 247 2.47025% ping
10 228 2.28023% rm
reverland
2014-04-19 09:35:36 +08:00
1 1638 16.3816% sudo
2 706 7.06071% eix
3 548 5.48055% python
4 461 4.61046% cat
5 428 4.28043% gvim
6 386 3.86039% cd
7 240 2.40024% vim
8 231 2.31023% man
9 202 2.0202% rm
10 190 1.90019% ls

怎么可能,明明ipython用的更多= =不过一般都sudo ipython……
ChiangDi
2014-04-19 09:37:33 +08:00
1 2335 23.9512% ls
2 1378 14.1348% cd
3 1283 13.1603% vi
4 647 6.63658% git
5 424 4.34916% ..
6 293 3.00544% nohup
7 289 2.96441% rm
8 275 2.8208% sudo
9 229 2.34896% clang
10 151 1.54888% tmux

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

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

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

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

© 2021 V2EX