Operating System - HP-UX
1822430 Members
3146 Online
109642 Solutions
New Discussion юеВ

Commands to obtain information about a socket

 
SYSTEME_UNIX
New Member

Commands to obtain information about a socket

Hello,
Do you know a command to see which process use a socket ?
Do you know a command to free a socket ?

Thank you.
3 REPLIES 3
RAC_1
Honored Contributor

Re: Commands to obtain information about a socket

netstat | grep "whatyouwant"
If you have lsof,

lsof -p tcp:port_number
lsof -p udp:port_number

You can stop the process that is using port to free it up.
There is no substitute to HARDWORK
SYSTEME_UNIX
New Member

Re: Commands to obtain information about a socket

Ok. Thank you.
SYSTEME_UNIX
New Member

Re: Commands to obtain information about a socket

OK