Find the Top 10 commands in your linux box!

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.

时间: 2024-10-10 21:19:00

Find the Top 10 commands in your linux box!的相关文章

TOP 10 BEST LINUX GAMES RELEASED IN 2016

Gaming on Linux used to be a very rare phrase. But since the arrival of Steam on Linux, the Linux gaming community is all charged up because of the games being natively developed for Linux instead of being dependent on third-party applications like W

《UNIX/Linux网络日志分析与流量监控》新书上市一个月,销量位列畅销榜 TOP 10

<UNIX/Linux网络日志分析与流量监控>新书上市一个月,销量位列畅销榜 TOP 10,感谢大家的支持,今后将会有重磅新书推出,2015 新年快乐!

Top 10 Free Wireless Network hacking/monitoring tools for ethical hackers and businesses

There are lots of free tools available online to get easy access to the WiFi networks intended to help the network admins and the programmers working on the WiFi systems and we at Team Techworm have picked the top 10 of those for ethical hackers, pro

OWASP(Open Web Application Security Project) Top 10 for JavaScript

Injection Injection flaws, such as SQL, OS, and LDAP injection, occur when untrusted data is sent to an interpreter as part of a command or query. The attacker's hostile data can trick the interpreter into executing unintended commands or accessing u

OWAP Top 10

2013 Top 10 List   A1-Injection Injection flaws, such as SQL, OS, and LDAP injection occur when untrusted data is sent to an interpreter as part of a command or query. The attacker's hostile data can trick the interpreter into executing unintended co

Top 10 Mistakes Java Developers Make(转)

文章列出了Java开发者最常犯的是个错误. 1.将数组转换为ArrayList 为了将数组转换为ArrayList,开发者经常会这样做: ? 1 List<String> list = Arrays.asList(arr); Arrays.asList()会返回一个ArrayList,但这个ArrayList是Arrays的私有静态类,不是java.util.ArrayList.java.util.Arrays.ArrayList有set(), get(), contains()方法,但没有任

Top 10 questions about Java Collections--reference

reference from:http://www.programcreek.com/2013/09/top-10-questions-for-java-collections/ The following are the most popular questions of Java collections asked and discussed on Stackoverflow. Before you look at those questions, it's a good idea to s

TOP 10开源的推荐系统简介

最近这两年推荐系统特别火,本文搜集整理了一些比较好的开源推荐系统,即有轻量级的适用于做研究的SVDFeature.LibMF.LibFM等,也有重量级的适用于工业系统的 Mahout.Oryx.EasyRecd等,供大家参考.PS:这里的top 10仅代表个人观点. #1.SVDFeature 主页:http://svdfeature.apexlab.org/wiki/Main_Page 语言:C++一个feature-based协同过滤和排序工具,由上海交大Apex实验室开发,代码质量较高.在

Top 10 Algorithms of 20th and 21st Century

Top 10 Algorithms of 20th and 21st Century MATH 595 (Section TTA) Fall 2014 TR 2:00 pm - 3:20 pm, Room 341 Altgeld HallUniversity of Illinois at Urbana-Champaign, Department of Mathematics Instructors : Yuliy Baryshnikov and Anil N. Hirani Schedule:I