Answers for "how to close sockets ubuntu"

1

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>
Posted by: Guest on April-20-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language