Windows-first lsof-style socket, process, and file-in-use inspection.
This project focuses on the Windows workflows that map cleanly from lsof:
checking which process owns a port, listing active TCP/UDP sockets, and finding
which process is using a file.
-ifiltering for protocol/host/port (tcp,udp,@host,:port)-pPID filtering-tterse PID-only output- accepts
-nand-Pfor lsof compatibility file <path>for targeted file-in-use inspection
Current runtime is Windows-first and uses native Windows APIs:
- IP Helper API for TCP/UDP socket ownership
QueryFullProcessImageNameW()for process metadata- Restart Manager for file-in-use ownership
lsof -i
lsof -i :3000
lsof -i tcp:443
lsof -i [email protected]:53
lsof -t -i :8080
lsof -p 1234,5678 -i
lsof file C:\path\to\app.log- full Unix
lsofparity - system-wide open-handle enumeration
- file-descriptor-style output such as
cwd,txt,mem, or numeric FD sets - non-Windows runtime support
scoop bucket add rocky https://github.com/i-rocky/scoop-bucket
scoop install lsofDownload the latest archive from:
https://github.com/i-rocky/lsof/releases/latest
Then place lsof.exe on your PATH.
cargo build --releasecargo testTagging v* publishes:
lsof-windows-x86_64-vX.Y.Z.zipSHA256SUMS.txt