You are on page 1of 1

In Unix, what do the output fields of the ps command mean?

The ps command varies significantly among Unix implementations. Each vendor incorporates its own flags and outputs the results differently. However, most ps variants are rooted enough in either the System V or BSD syntax that entering ps -elf (System V) or ps alx (BSD) will produce something like the following: FS UID ID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME COMD 1 R obiwan 792 779 22 183 20 10ec5f80 29 - 12:52:24 pts/2 0:00 ps -elf 1 S root 24621 560 0 154 20 13603f80 11 4697c0 Jun 16 ttyp2 0:00 telnetd 1 S dvader 1162 1153 0 154 20 110a1f80 77 452be4 11:25:41 pts/3 0:00 ssh deathstar This particular example is from HP-UX, whose output is basically vanilla System V. The following table describes the meanings of the columns that commonly appear in ps outputs. No version of ps will display all of these fields, however. Column Header Contents

%CPU %MEM ADDR C or CP COMMAND* NI F PID PPID PRI RSS S or STAT

How much of the CPU the process is using How much memory the process is using Memory address of the process CPU usage and scheduling information Name of the process, including arguments, if any nice value Flags Process ID number ID number of the process's parent process Priority of the process Real memory usage Process status code

START or STIME Time when the process started SZ TIME TT or TTY UID or USER WCHAN Virtual memory usage Total CPU usage Terminal associated with the process Username of the process's owner Memory address of the event the process is waiting for

* = Often abbreviated

For information specific to your Unix implementation, consult the ps man page. At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support

You might also like