> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled-4/linux-cli/jian-shi-li-shi-ming-ling.md).

# 檢視歷史命令

## 使用history + awk 過濾出最常使用的歷史命令

history | awk 'BEGIN {FS="\[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr | head
