From 823566064706dc1dea8e58f38e19f8e0b3f329aa Mon Sep 17 00:00:00 2001 From: Yann ILAS Date: Thu, 9 Jul 2026 09:37:53 +0200 Subject: [PATCH] Add alias to list zombie processes Added alias to list zombie processes with details. --- plugins/systemadmin/systemadmin.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/systemadmin/systemadmin.plugin.zsh b/plugins/systemadmin/systemadmin.plugin.zsh index 566384f72..6c26b45f5 100644 --- a/plugins/systemadmin/systemadmin.plugin.zsh +++ b/plugins/systemadmin/systemadmin.plugin.zsh @@ -28,6 +28,8 @@ alias mkdir='mkdir -pv' # get top process eating memory alias psmem='ps -e -orss=,args= | sort -b -k1 -nr' 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' 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'