top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Linux: How to check a particular port is already being used by some executable ?

+2 votes
139 views
Linux: How to check a particular port is already being used by some executable ?
posted Apr 29, 2014 by Harshita

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote

netstat command to find open ports

$ netstat --listen

To display open ports and established TCP connections, enter:

$ netstat -vatn

To display only open UDP ports try the following command:

$ netstat -vaun

Display PID and program names in netstat output

$ netstat -pt

Check the following link for more specific need: http://www.thegeekstuff.com/2010/03/netstat-command-examples/

answer Apr 29, 2014 by Salil Agrawal
Similar Questions
+3 votes

I was running a binary and in between network went down. Process was still running with its parent "1".
I re-logged into the system and find the running process and trigger $ kill -9 . After doing that I was trying to rerun the binary but it was not working with error message "Port is already being used" but I again checked there was no binary with such name. How I can resolve such issue ? Please help me .

+5 votes
+7 votes

What is the difference in behavior between mutex in linux and mutex in VxWorks ??

+1 vote

What happens after you write “a.out” and press enter. What are the functionality performed by the OS after executable file is created of your code.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...