Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ps --ppid 2 -p 2 --deselect
- ps axl | awk '$7 != 0 && $10 !~ "Z"'
- ps -e -o pid= -o state= -o vsize= | awk '$2 != "Z" && $3 != 0 {print $1}'
- ps /proc/[0-9]*/exe(^-@:h:t)
- ps -p "$(find -L /proc/[0-9]*/exe ! -type l | cut -d / -f3 | paste -sd , -)"
- ps -p "$(
- { find -L /proc/[0-9]*/exe ! -type l | cut -d / -f3
- ps -eo pid=,state= | sed -n 's/ Z//p'
- } | paste -sd , -)"
- ps auxf | grep -v ]$
- ps -o pid,user,comm,vsz,stat | awk '$4 != 0 && $5 !~ "Z"'
- $ ps -o foo
- ps: bad -o argument 'foo', supported arguments: user,group,comm,args,pid,ppid,pgid,tty,vsz,stat,rss
- ps aux | awk '{p[($5 == 0)]++} END {printf "%-16s %6dn%-16s %6dn", "Kernel processes", p[1], "User processes", p[0]}'
- Kernel processes 354
- User processes 59
- ps aux | awk '$NF!~/^[.+]$/'
Add Comment
Please, Sign In to add comment