I want to list all the processes what are running, which I'm doing using either ps aux, or ps auxf, but I also want to get the elapsed time for all of them. I've seen the command ps -o etime,cmd, which displays the elapsed time, and the command, but it doesn't seem to list all of them. Can I combine the aux(f) and -o etime at all?
Can I use ps aux, along with -o etime?
ps
My apologies,I figured out that the columns are overwritten by the -o.Here is what you were looking for:ps -e -o user,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,command,etime,euid