shell小技巧(四十一)列出当前用户最近使用最多的10个命令

代码:

history | awk '{print $2}'|sort|uniq -c|sort -rn |head -10

发布了95 篇原创文章 · 获赞 3 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/bigwood99/article/details/105354654