Renamed new function to 'topby'.
This commit is contained in:
parent
0bd9de0021
commit
b7a65468e4
@ -127,8 +127,8 @@ deblist() {
|
||||
}
|
||||
{{- end }}
|
||||
|
||||
# Run 'top' with list of processes matching name.
|
||||
topof() {
|
||||
# Run 'top' by a list of processes matching name.
|
||||
topby() {
|
||||
local name=${1:?name required}
|
||||
local pidlist="$(pidof $name | sed 's/ /,/g')"
|
||||
top -p $pidlist
|
||||
|
||||
Loading…
Reference in New Issue
Block a user