replicating top with ps -ef type command

Discussion in 'Site & Server Administration' started by sarahk, Nov 29, 2005.

  1. #1
    Anyone able to help me out with some basic unix commands?

    I'm wanting to replicate top using ps -ef so that I can have some more control over columns, grep etc.

    I can pretty much get it - all except for the % of cpu usage.

    How do I add that in? Any ideas?
     
    sarahk, Nov 29, 2005 IP
  2. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #2
    Last time I checked, ps cannot tell you the CPU usage per process.

    but you could try
    top -b -n 1
     
    frankm, Nov 29, 2005 IP