A small Rust CLI tool that inspects Linux TCP sockets from /proc and maps them to process IDs and names.
- Reads TCP socket entries from
/proc/net/tcp - Parses local port and socket state
- Builds an inode -> PID map from
/proc/<pid>/fd - Resolves process names from
/proc/<pid>/comm - Sorts results by port
This project currently parses and resolves data, but the output is still in a debug-oriented state:
- It prints raw parsed columns from
/proc/net/tcp - It prints the full inode/PID map
mainonly prints a success/error message
So the core collection logic exists, but a final user-facing table/list output is not implemented yet.
- Linux (uses
/procpaths specific to Linux) - Rust toolchain (recommended: latest stable)
From the project root:
cargo runBuild release binary:
cargo build --releaseRun tests (when added):
cargo testsrc/main.rs: TCP parsing and process mapping logicCargo.toml: package and dependency configuration
Dependencies currently include terminal/UI crates (ratatui, crossterm), but the present main.rs implementation is command-line and debug-print based.
No license file is currently included in this repository.