方法一:
cat ~/.bash_history | cut -d " " -f1 | sort | uniq -c | sort -nr | head
补充学习(参考:http://vbird.dic.ksu.edu.tw/linux_basic/fedora_4/0320bash-fc4.php):
1)cut的用法:
方法二:
方法一:
cat ~/.bash_history | cut -d " " -f1 | sort | uniq -c | sort -nr | head
补充学习(参考:http://vbird.dic.ksu.edu.tw/linux_basic/fedora_4/0320bash-fc4.php):
1)cut的用法:
方法二: