Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

How to list processes?

Discussion in 'Command Line' started by carbon333, Feb 16, 2012.

  1. carbon333

    carbon333 Guest

    You can do this by typing:

    ps aux

    in the terminal.

  2. bashcommando

    bashcommando Guest

    Works well too
    1 person likes this.
  3. Yitao Li

    Yitao Li Guest

    It depends on which UNIX you are using...

    "ps aux" would be the BSD syntax -- "a" for "all processes", "u" for "user format, "x" for lifting the "must have a tty" restriction

    "ps -ef" would be the Unix98 syntax -- "-e" for selecting all processes, "-f" for full-format listing.

    If I remember correctly : FreeBSD, OpenBSD, and NetBSD would support the BSD syntax only, while many other distributions would support both types of syntaxes.
    #3 Yitao Li, Jul 6, 2014
    Last edited: Jul 6, 2014
  4. GildeNam

    GildeNam Guest

    To get information about all processes running on the system use ps -A.

    The top command is, like ps, used to display running processes, but it updates its display every few seconds.

    ps command
    top command
    1 person likes this.
  5. edward_haigh

    edward_haigh Guest

  6. Jefff

    Jefff Guest

    Here's a way to get the top 10 CPU processes:
    /bin/ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
    And if you are looking for a specific process, this example uses apache.
    ps aux | grep apache
  7. jerz4lunch

    jerz4lunch Guest

    ps ax
    But I use the first one more.

Share This Page