This commit is contained in:
Yann ILAS 2026-08-06 10:16:30 +02:00 committed by GitHub
commit 41d373d5fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,6 +28,8 @@ alias mkdir='mkdir -pv'
# get top process eating memory # get top process eating memory
alias psmem='ps -e -orss=,args= | sort -b -k1 -nr' alias psmem='ps -e -orss=,args= | sort -b -k1 -nr'
alias psmem10='ps -e -orss=,args= | sort -b -k1 -nr | head -n 10' alias psmem10='ps -e -orss=,args= | sort -b -k1 -nr | head -n 10'
# list all zombie processes with ownership and parent process details
alias pszombie="ps -eo user,pid,ppid,state,cmd | awk '\$4==\"Z\"'"
# get top process eating cpu if not work try execute : export LC_ALL='C' # get top process eating cpu if not work try execute : export LC_ALL='C'
alias pscpu='ps -e -o pcpu,cpu,nice,state,cputime,args | sort -k1,1n -nr' alias pscpu='ps -e -o pcpu,cpu,nice,state,cputime,args | sort -k1,1n -nr'
alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args | sort -k1,1n -nr | head -n 10' alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args | sort -k1,1n -nr | head -n 10'
@ -177,10 +179,10 @@ function getip() {
fi fi
} }
# Clear zombie processes ## Clear zombie processes
function clrz() { #function clrz() {
ps -eal | awk '{ if ($2 == "Z") {print $4}}' | kill -9 # ps -eal | awk '{ if ($2 == "Z") {print $4}}' | kill -9
} #}
# Second concurrent # Second concurrent
function conssec() { function conssec() {