常用命令行 2015 年11 月2 日 We can use the following shell scripts to find the 10 most used shell commands for a user. 1 history | awk '{a[$2]++} END {for(i in a) {print a[i]" "i}}'| sort -rn | head