Table of Contents

lsof

The lsof (List Open Files) command is a tool used on Unix and Linux systems to list files opened by processes on the system. It is useful for system administration and troubleshooting, as it helps identify which processes are using files, network sockets, and other resources.

Basic Usage

The general syntax of the command is:

lsof [options]

Common Options

Examples

lsof -i

lsof -i :80

lsof -p 1234

lsof -u admin

Utility

lsof is especially useful for: