LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Netstat explanation. (https://www.linuxquestions.org/questions/linux-newbie-8/netstat-explanation-838229/)

nobitavn 10-15-2010 06:01 AM

Netstat explanation.
 
Hi all,

When i run "netstat -a" commnand, it display:

Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 20269 /tmp/.gdm_socket
...
unix 2 [ ] DGRAM 997161
unix 3 [ ] STREAM CONNECTED 942628 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 942627
unix 3 [ ] STREAM CONNECTED 942626 /tmp/.X11-unix/X0
....

I have questions: Why some socket don't have Path name? And what mean's RefCnt = 2?

Thanks,

rustek 10-15-2010 06:11 AM

The manual pages are of great help.

man netstat
man socket
man tcp
man udp

eozakos 10-15-2010 06:17 AM

Netstat
 
i have used netstat command in solaris.
İ dont know your application running on unix platform but i can say that
you have to configure your ports in your application specific file as i did before.
You are seeing /tmp/x11 path because during the installation or with editing some file
you created that. You have to configure your listening sockets by knowing your specific application files.
İ hope it Will benefit you
thanks
br
ozan


All times are GMT -5. The time now is 06:00 PM.