LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Get the username , memoery size and thread count for a given PID (https://www.linuxquestions.org/questions/linux-newbie-8/get-the-username-memoery-size-and-thread-count-for-a-given-pid-710710/)

haseit 03-11-2009 05:42 AM

Get the username , memoery size and thread count for a given PID
 
Hello all,

I need to get some useful information about process.
my question is,

1. How to get the UID from PID?
2. How to get the process size from PID?
3. How to get the Thread count for a PID?

Please help me on this matter.

Thanks
Hasantha

Matey 03-11-2009 05:49 AM

Quote:

Originally Posted by haseit (Post 3471652)
Hello all,

I need to get some useful information about process.
my question is,

1. How to get the UID from PID?
2. How to get the process size from PID?
3. How to get the Thread count for a PID?

Please help me on this matter.

Thanks
Hasantha

Hi;
ps -aux does a lot for me.

I guess there are lots of functions under ps if run as root but I dont know most of them.

malekmustaq 03-11-2009 10:12 AM

haseit:

issue command: ps axu
1st column left is the owner ID, next is the ProcessID, next the percentage of CPU usage, then the memory used (%) and so on. description at the last column.


All times are GMT -5. The time now is 11:09 AM.