top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+2 votes
500 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 LinkedIn 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 ??

+4 votes

So many times, we make foreground process to background process in linux system. How does it handle internally ?

...