1833053 Members
2498 Online
110049 Solutions
New Discussion

ps -ef output

 
SOLVED
Go to solution
paula hawk_1
Occasional Contributor

ps -ef output

Can someone tell me what the fourth field represents when you do the "ps -ef | grep XX" command?

thanks..
10 REPLIES 10
Dario_1
Trusted Contributor
Solution

Re: ps -ef output

Paula:

Check this from ps man page:

cpu Processor utilization for scheduling. The default
heading for this column is C.

Regards,

DR
Robert Gamble
Respected Contributor

Re: ps -ef output

As per the man page, the fourth column is which CPU the process is executing.

If you pipe your to 'more', you will see the headers on the first line.

Hope this helps!
Pete Randall
Outstanding Contributor

Re: ps -ef output

The man page describes it as "cpu" - presumable the cpu the process is running on in a multi-processor installation?


Pete

Pete
Dietmar Konermann
Honored Contributor

Re: ps -ef output

man ps:

cpu
Processor utilization for scheduling. The default heading for this column is C.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Uday_S_Ankolekar
Honored Contributor

Re: ps -ef output

-f option shows these columns

user, pid, ppid, cpu,stime,tty,time and args

fourth field is cpu time

-USA..

Good Luck..
S.K. Chan
Honored Contributor

Re: ps -ef output

Man pages tells you that but didn't quite explain it well enough. That column represents the CPU usage of a particular process. Most of the time you'll see "0". This number will increase each time a process take over the CPU cycle. And if I'm not mistaken the C value has a max limit to it, somewhere in the region of of 100, I can;t remember.

Re: ps -ef output

Hi Paula,

the the man page for ps:

Output format options:

-f show columns user, pid, ppid, cpu, stime, tty, time, and args, in that order.

cpu means Processor utilization for scheduling. The default heading for this column is C.

Hope is helpful for you.
Br, Andreas
S.K. Chan
Honored Contributor

Re: ps -ef output

Man pages tells you that but didn't quite explain it well enough. That column represents the CPU usage of a particular process. Most of the time you'll see "0". This number will increase each time a process take over the CPU cycle. And if I'm not mistaken the C value has a max limit to it, somewhere in the region of of 100, I can;t remember.
John Meissner
Esteemed Contributor

Re: ps -ef output

acording to the the man on 'ps' that I did the columns should be
(using the -f option)
user pid tty cpu stime tty time args

I believe the cpu is the processor utilization for scheduling.
All paths lead to destiny
paula hawk_1
Occasional Contributor

Re: ps -ef output

Thanks everyone!! Have a good weekend.