lsof_go is a simplified reimplementation of the Unix lsof command, written in Go. It lists currently running processes and their associated metadata (like PID, command name,username and commandline) by reading from the Linux /proc filesystem.
⚠️ Note: Works only on Linux./procis not available on macOS or Windows.
- List active process IDs and command names
- Optionally show the username (-username)
- Lightweight and fast
- Educational — great for understanding how
/procworks
Clone the repo:
git clone https://github.com/YOUR_USERNAME/golsof.git
cd golsof
go build -o golsof