
如何只顯示指定使用者的進程htop
?
應用過濾器 ( F4
) 似乎不起作用,因為它似乎沒有在 USER 列上套用過濾器。
答案1
從man htop
:
-u --user=USERNAME
Show only the processes of a given user
因此,如果您運行htop -u colord
,您將只能看到該用戶的進程colord
。
答案2
另一種可能性是按 htop 中的「u」鍵。將顯示一個選擇器,允許您按使用者過濾進程清單。