LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Get PID number (https://www.linuxquestions.org/questions/linux-newbie-8/get-pid-number-224319/)

xmdms 08-30-2004 10:53 AM

Get PID number
 
Hi,
I know how to get the user info from the grep command
example: grep -i user_name /etc/passwd

But how do you get the PID number so that I can do a kill on this user??

Thank you in advance.

JB

egag 08-30-2004 11:30 AM

just type ' top ' in a console , you'll get a list...

egag

xmdms 08-30-2004 11:46 AM

Hi - Is there another command besides 'top'? There's times where you can't wait for top scroll to a specific process.

Thanks,
JB

michaelk 08-30-2004 12:10 PM

Use the ps command.

xmdms 08-30-2004 01:35 PM

Thanks everyone for your help.

The actual command I was looking for is:

ps -aux

This is a very handy command that I think every newbie out there should master.

Again, Thanks!
JB


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