Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 09-30-2003, 11:14 AM   #1
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, 11:31 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
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, 09:06 AM   #3
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:

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


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


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 03:03 AM
what do these processes do? sdat1333 Fedora 2 11-26-2004 09:40 PM
What command can identify processes running on ports? hello321_1999 Linux - Newbie 2 11-23-2004 06:01 AM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 02:58 AM
Processes and Ports Mike_the_Man Solaris / OpenSolaris 4 04-07-2004 09:07 PM

All times are GMT -5. The time now is 08:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration