tldr/pages.zh_TW/linux/top.md

33 lines
478 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# top
> 即時顯示系統執行程序的資訊。
> 更多資訊:<https://manned.org/top>.
- 啟動 `top`
`top`
- 不顯示閒置以及殭屍行程:
`top -i`
- 只顯示特定使用者之程序:
`top -u {{使用者名稱}}`
- 依照指定領域排序:
`top -o {{領域名稱}}`
- 查看程序底下的所有線程:
`top -Hp {{程序 id}}`
- 僅顯示特定名稱程序的 PID
`top -p $(pgrep -d ',' {{程序名稱}})`
- 打開協助頁面:
`?`