Forrest logo
back to the lsof tool

shell:warp:c888b

List processes at port
$ lsof -i:${port}
try on your machine

The command "lsof -i:${port}" is used to list all the open files (or processes) that are using a specific port.

  • "lsof" stands for "list open files" and it is a command-line utility used in Unix-like operating systems to retrieve information about files currently opened by processes.
  • "-i" is an option of "lsof" that is used to filter and display only network-related information.
  • "${port}" is a placeholder that should be replaced with the specific port number you want to check.

When you run this command with a specific port number, it will display a list of processes or files that are currently using that port. This can be useful to identify which processes are using a particular network port or to check if a specific port is already in use.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lsof tool