DEV Community

Discussion on: How to properly close a port?

Collapse
 
mayankjoshi profile image
mayank joshi

In Linux

$top to see the list of open process

Killing a process

kill pid

  • kills the process by process id

killall pname

  • kills the process by name

-9 for forceful killing in both kill and killall

Use sudo if it's a root process.

Collapse
 
sylwiavargas profile image
Sylwia Vargas

Thank you! I'll add it right away!

Collapse
 
mayankjoshi profile image
mayank joshi

Actually the URL to my profile is incorrect.😅😅

Thread Thread
 
sylwiavargas profile image
Sylwia Vargas

🤦‍♀️corrected!