Command to find the Memory and CPU utilization using 'top' command

Hi all,

I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command.

Thanks in advance.

Thanks,
Ananthi.U

top
then press 'u'
it will ask for user
then give username

You can try this:

top |nawk -F" " -v OFS="\t" '{print $1,$2,$6,$10}'

and you can also check the processes in first column of output of "top" command with

pargs PID

or after typing "top" use u for user, k for kill,

or there is another command i just remembered

prstat -u root -a -s cpu

regards