Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-04-2003, 09:26 PM   #1
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Rep: Reputation: 15
finding pid with program name

Is there a way to find the pid using the process name? I have a process that shows up in the output of "w" that is idle, but I can't find the pid in order to kill it. Thanks
Old 08-04-2003, 09:38 PM   #2
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Use the "ps" command from procps package. "ps -C <command>" might do what you want. See "man ps" for more options.

Last edited by zmedico; 08-04-2003 at 09:40 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
logging off by script or finding PID of session bob_man_uk Red Hat 6 10-27-2005 04:37 AM
Advanced question: finding pid of an x window PFudd Linux - Software 3 05-31-2005 06:36 PM
Is there a way to make a program create a pid file? blk96gt Slackware 1 10-29-2004 12:59 PM
Finding the first pid corrierich Linux - General 2 03-06-2003 03:43 AM
finding a PID and killing it tangle Linux - General 3 01-25-2003 11:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration