$ ./guess_the_languageLinux CLI
Linux CLI · medium · #35

What is this command typically used for?

sudo lsof -i :8080
  1. Finding which process uses port 8080
  2. Opening port 8080 in the host firewall
  3. Sending a test request to port 8080
  4. Closing every socket on port 8080
lsof -i :PORT lists open network files on that port, including the owning command and PID.
Play Linux CLI ▸