Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to close sockets ubuntu

sudo netstat -ap | grep :<port_number> 
  
#The second line will contain the process id. e.g: 7838/python3 (7838 is the pid)
kill <pid>
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #close #sockets #ubuntu
ADD COMMENT
Topic
Name
8+5 =