首页 > 系统服务 > 详细

Find the Top 10 commands in your linux box!

时间:2014-09-04 18:40:19      阅读:293      评论:0      收藏:0      [点我收藏+]

history | awk ‘{print $2;}‘ | grep -v ‘^./‘ | sort -d | uniq -c | sort -nr | head -n 10

grep,  ‘-v‘ means invert-match,‘^‘ specify the begin of a line.

sort, ‘-d‘ means dictionary order, ‘-n‘ means take the string as a number, ‘-r‘ means reverse.

uniq -c, can prefix lines by the number of occurences.

Find the Top 10 commands in your linux box!

原文:http://www.cnblogs.com/instona/p/3956586.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!