I issue the command ps -aux | grep tony
. It displays the following output
tony 10986 0.0 0.0 33532 464 ? S Feb01 0:00 vncconfig -iconic
tony 10988 0.0 0.0 86012 512 ? S Feb01 0:00 twm
tony 15553 0.0 0.0 92404 1848 ? S 10:34 0:00 sshd: tony@pts/34
tony 15554 0.0 0.0 66232 1680 pts/34 Ss+ 10:34 0:00 -bash
I would like kill all the my dead processes that have dates older than today.
I could have issued the command kill -9 10986
; kill -9 10988
, but I like to execute in one command and also there are many dead processes pending.
Any help would be much appreciated.
ps ux
orps -u tony
instead ofgrep
to avoid false positives.