Shell 綜合案例

打印出10條最經常使用的命令
cat ~/.bash_history |cut -d' ' -f1 |sort|uniq -c|sort -rnk 1|head
找出指定目錄中最大的10個文件 
du -ak [DIRECTORY] | sort -nrk 1 | head
相關文章
相關標籤/搜索