Download your favorite Linux distribution at LQ ISO.
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 11-03-2004, 06:50 AM   #1
Registered: Nov 2004
Posts: 33

Rep: Reputation: 15
What command can identify processes running on ports?

I have just installed SLES 8. I run netstat -a and see there is a process listening on the smtp port.

I need to kill this process as it is preventing me from starting James email server (James is complaining about smtp address already being used).

Therefore, what command can I run to identify the process listening on port 25? Once I have identified this process, I will stop it from starting when the machine is rebooted.

Thanks in advance.
Old 11-03-2004, 06:57 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,289

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Use the -p option to netstat or use lsof and grep for the port.
Old 11-23-2004, 05:01 AM   #3
Registered: Nov 2004
Posts: 33

Original Poster
Rep: Reputation: 15
"netstat -ap" did the trick. Thanks very much.


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
script/command to kill processes running on particular port varunbihani Linux - General 2 07-08-2005 03:35 AM
Command to list all running processes GSX Linux - General 4 02-23-2005 03:42 AM
howto identify what services are running via CLI? Lleb_KCir Linux - General 3 09-21-2004 11:44 PM
Processes and Ports Mike_the_Man Solaris / OpenSolaris 4 04-07-2004 08:07 PM
Ports and processes fmhermo Linux - General 2 10-18-2003 08:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:37 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