O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ps

Displays process status

ps [options][process-list]

The ps utility displays status information about processes.

Arguments

The process-list is a comma- or SPACE-separated list of PID numbers. When you specify a process-list, ps reports only on processes in that list. The process-list must follow all options on the command line.

Options

The version of ps that Red Hat includes takes three types of options, each preceded by a different prefix. You can intermix the options.

  1. Two hyphens: GNU options

  2. One hyphen: UNIX98 options

  3. No hyphens: BSD options

-A

all Reports on all processes. Also -e.

-e

everything Reports on all processes. Also -A.

-f

full Displays a listing with more columns of information.

--forest

Displays the process tree.

-l

long Produces ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required