LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-30-2003, 10:14 AM   #1
fmhermo
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
Unhappy Ports and processes


I know this may be a really newbie question, but....


How can I know which process is listening on a given port.

I have been reading "man netstat", but is not what I'm looking. I need something like:

Port Process
-------------------------
80/tcp apache (or PID)



Thank you
 
Old 09-30-2003, 10:31 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
netstat actually does this, you'll just need to run more options when using this command.

man netstat will give you the manual pages covering this command.
 
Old 10-18-2003, 08:06 AM   #3
jasonlambert
LQ Newbie
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware(x2), Debian, Redhat(x2)
Posts: 14

Rep: Reputation: 0
I wrote something to do this the other day, have a look at:
http://www.elitelinux.com/viewtopic.php?p=7701

EDIT: its the line in my signature... run that as root, will give you processname, PID, and TCP port.

Jason

Last edited by jasonlambert; 10-18-2003 at 08:07 AM.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
what do these processes do? sdat1333 Fedora 2 11-26-2004 08:40 PM
What command can identify processes running on ports? hello321_1999 Linux - Newbie 2 11-23-2004 05:01 AM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 01:58 AM
Processes and Ports Mike_the_Man Solaris / OpenSolaris 4 04-07-2004 08:07 PM


All times are GMT -5. The time now is 09:41 PM.

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