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?

  • ps axf -o pid,user,etime,cmd
    – lcd047
    Jul 13, 2015 at 11:27

2 Answers 2


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
  • Just a note, that didn't list them all, I needed to add -ax to the command to get all the processes. But other than that, good answer :) thanks.
    – TMH
    Jul 13, 2015 at 12:10

If you'd like to see all processes along with their elapsed time, you can use -A (or its synonym -e).

So, something like: ps -A -o etime,cmd

From the ps manual page:

-A Select all processes. Identical to -e.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .