Linux PS Command

display a list of running processes.to make the command output easier to read,you can specify one of the sort keys listed in the sort key table.you can also use one of the output fields listed in the output fields table.

Syntax

$ps [option] [sortkey] [output field]

Options

Sr.No

Options

Descriptions

01

-a

show all process on the current terminal,including those of other users

02

-A

show all processes

03

-c name

show process specified by name

04

-e

show all process

05

-f

use the full listing

06

-G group id

show processes owned by the specified group ID

07

-H

show the process hierarchy

08

-p

show the process specified by process id

09

-w

use wide output

Sort Key

Sr.No

Sortkey

Descriptions

01

p

the process ID number

02

g

the group own ID of the process

03

s

the memory usage in kilobyte

Field

Sr.No

Field

Descriptions

01

PPID

display the parent process ID

02

SZ

display the amount of physical memory used.

03

TTY

display the name of terminal used for this process

04

CMD

display the name of executable

Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!