lsof as a Linux alternative to Sysinternals Suite
Updated
Our verdict
lsof is useful for a subset of Sysinternals tasks, mainly file and network handle inspection. It is a good fit for sysadmins who need quick command‑line visibility into open files and sockets, especially on servers. However, it does not provide process trees, registry monitoring, startup entry analysis, or disk/partition tools. Users who rely on the full Sysinternals Suite for deep troubleshooting will find lsof insufficient alone.
- License
- BSD-2-Clause
- Price
- Free
- Latest version
- 4.99.7
- Rating
- —
What works the same
- Both list open files and processes
- Both can filter by user or process ID
- Both provide output that can be parsed by scripts
What is different
- lsof lacks a graphical process tree view
- It does not monitor registry or configuration files
- No startup or autostart entry analysis
- No disk/partition management tools
- No low‑level system call tracing
Opening your Sysinternals Suite files
lsof does not read or export Sysinternals files such as Process Explorer XML or Autoruns logs. It works only with native Linux file descriptors and sockets; no direct compatibility with Windows‑specific data formats.
Switching from Sysinternals Suite to lsof, step by step
- 1. Install lsof via your distro’s package manager (e.g., apt install lsof).
- 2. Replace Sysinternals commands that list open files with lsof -p <pid> or lsof -i.
- 3. Use lsof -i :<port> to find which process owns a network port.
- 4. For process trees, combine lsof with pstree or ps -ejH.
- 5. For startup entries, use systemctl list-unit-files or crontab -l instead of Autoruns.
- 6. For disk/partition info, use df, fdisk, or blkid rather than Disk Management.
Key features of lsof
- Lists all open files for specific or all processes
- Identifies processes holding network ports
- Shows file descriptors and their types (regular, socket, pipe)
- Filters by user, process ID, or command name
- Outputs data in a format suitable for scripting
- Reveals hidden files or deleted files still in use
How to install lsof on Linux
sudo apt install lsofsudo apt install lsofsudo dnf install lsofsudo pacman -S lsofsudo zypper install lsofFrequently asked questions
Can lsof show deleted files still in use?
Yes, lsof lists files with a '(deleted)' suffix, indicating the file is removed from the filesystem but still open by a process.
Does lsof provide a GUI?
No, lsof is a command‑line tool. For a graphical view, combine it with tools like lsof -p <pid> | less or use third‑party GUIs that wrap lsof.
Is lsof suitable for Windows?
No, lsof is a Linux/Unix utility. Windows equivalents are Sysinternals tools or PowerShell cmdlets.