Linux: Find Out What Is Using TCP Port 80

To find out what is using TCP port 80 on a Linux system, you can use the lsof (List Open Files) command, which displays information about files opened by processes running on the system.

Here’s the command to find out what is using TCP port 80:

$ sudo lsof -i :80

This will display a list of all processes that are using TCP port 80, along with the PID (process ID), the name of the process, and the username that owns the process.

For example:

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 1234 root 4u IPv4 12345 0t0 TCP *:http (LISTEN)

In this example, the process with PID 1234 is using TCP port 80 and it’s the Apache HTTP Server.

Leave a Comment