CODE | FROM | DUDE
BlogProjectsAbout

Find process using a port

Jul 6, 2023·1 min read

you can execute the following cmd to find the process which occupies a specific port in linux.

Copy
sudo lsof -i :<port_number> -t | xargs ps -o pid,user,cmd -p
bashcmdline

Related posts

  • Find disk usage sorted by sizeJul 11, 2023
  • Local aliases using zen aliasesFeb 5, 2021
  • Better cmdlineJun 9, 2019

Share this article

‹ PreviousFind disk usage sorted by sizeNext ›Top 10 tools you need as developer