RECOMMENDED Amnezia Premium: Works Where Other VPNs Fail

Unblockable AmneziaWG 2.0 & XRay protocols. Perfect for lag-free access to ChatGPT, Claude AI, global freelance marketplaces, and restricted streaming networks with clean RAM-only privacy.

lsof

lsof

lsof (LiSt of Open Files) — administrator tool, command line utility to display information about which files are used by which processes.

Open the file lsof can also be a regular file, directory, network, file, block or character file, dynamic library, the usual conveyor, and many others. Thus you can use the utility to get information about any open file (as is known in the Unix and GNU/Linux se anything in this file).

lsof launched without any options displays a list of all open files in all possible processes. If you specify a file as a argument displays all processes that use this file in any way. You can specify multiple files and displays all the processes that use these files.

lsof supports the viewing of files used by each application or process ID, you can view the files opened by a specific user, you can display the files open by all users except specific. Network connection in GNU/Linux are also files, thus information about them can also be obtained by using lsof. For example, you can obtain a list of processes listening on a specific port, a list of all UDP/TCP connections and so on…

lsof allows you to view a list of processes that opened the files from a specific directory (including subdirectories), you can view the files opened by the processes that use a particular mount point. Asked options can be combined, supported the conclusion in the repeat mode, the output at a specified interval can be continued regardless of the presence of open files.

lsof is part of the standard tools of most GNU/Linux distributions, the tool or its output can be used by other applications or scripts.

License: BSD (Berkeley Software Distribution)

Home page

The utility lsof (Linux Documentation Project)

Frequently Asked Questions about lsof

Author: posixru

Source: zenway.ru

🛠️ Top Temporary VPS for Testing & Experiments (2026)

Need a fast cloud server for a few hours or days? Deploy an isolated testing environment, run your scripts, and destroy it without any monthly commitments. Secure payments via Crypto (USDT) & PayPal supported.

AÉZA — Ultimate Testing Environment Flexible rates: from €0.01/hr depending on the billing period (the longer you rent, the cheaper it gets).
Exclusive Welcome Bonus: Get an extra 15% on your first balance top-up within 24 hours after registration.
Deploy on Aeza
Friendhosting — High-Storage VDS Hourly VDS infrastructure (from €0.03/hr) deployed across massive global locations.
• Best-in-class Storage VDS configurations with huge disk space for heavy data testing.
Deploy on Friend
Zomro — Premium Daily Node Daily billing model starting at just €0.16/day (~€0.007/hr) for optimal cost control.
• High-speed hardware platform with a stable presence in the Netherlands (Europe).
Deploy on Zomro
Rork

Linux hobbyist into networking and digital privacy. I use this hub to translate and store technical notes on sysadmin tasks and anonymity tools. Tech should work for people, not the other way around.

Rate author
Add a comment