1821638 Members
3091 Online
109633 Solutions
New Discussion юеВ

grep command output

 
paula hawk_1
Occasional Contributor

grep command output

Can anyone tell me what the fourth field means when you do the "ps -ef | grep "xxx" command.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: grep command output

User Process ID Parent Process Id C is child level.
oracle 2311 1 0 21:45:49 ? 0:04 ora_pmon_repnew


Watch.

root 19891 19378 2 09:43:46 pts/te 00:00 ps -efH
root 19892 19378 1 09:43:46 pts/te 00:00 more


The top process is the child which is being piped throuh more.

0 is the top of the chain, the parent.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Helen French
Honored Contributor

Re: grep command output

From man pages of ps: when you specify "-f" the fourth field is the "cpu" column which means "Processor utilization for scheduling. The default heading for this column is C"
Life is a promise, fulfill it!
Tom Danzig
Honored Contributor

Re: grep command output

It's the scheduling number for CPU. This can be somewhat valuable in detrmining a processes cpu utilization. It will rance from 0 (none) to 255 (100%).
Dario_1
Trusted Contributor

Re: grep command output

Paula:

From man page:

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

Regards,

DR