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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
09-30-2003, 10:14 AM
|
#1
|
LQ Newbie
Registered: Sep 2003
Posts: 1
Rep:
|
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
|
|
|
09-30-2003, 10:31 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
10-18-2003, 08:06 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: London, UK
Distribution: Slackware(x2), Debian, Redhat(x2)
Posts: 14
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|