Expand description
lsofrs — modern, high-performance lsof implementation in Rust
Maps the relationship between processes and the files they hold open. Supports regular files, directories, sockets, pipes, devices, and streams.
The binary entry points (lsofrs, lsf, and the lsof alias crate) are
all one line over run(), so every shipped name runs identical code.
Re-exports§
pub use run::gather_processes;pub use run::run;
Modules§
- cli
- Command-line argument parsing
- config
configsubmodule. Persistent configuration — reads/writes ~/.lsofrs.conf (TOML)- csv_out
csv_outsubmodule. CSV export for pipelines/spreadsheets- delta
deltasubmodule. Delta highlighting — track FD changes between iterations- filter
filtersubmodule. Selection and filtering logic- follow
followsubmodule. Follow mode — watch a single process’s FDs in real-time- json
jsonsubmodule. JSON output module- leak
leaksubmodule. FD leak detection — track monotonically increasing FD counts- linux
linuxsubmodule. Linux process enumeration via /proc filesystem- monitor
monitorsubmodule. Live full-screen monitoring mode (like top)- net_map
net_mapsubmodule. Network connection map grouped by remote host- output
outputsubmodule. Columnar and field output formatting- pipe_
chain pipe_chainsubmodule. Trace pipe/socket pairs between processes, show IPC topology- ports
portssubmodule. Show listening ports summary (like ss -tlnp)- resolve
resolvesubmodule. Host and service name resolution for socket names.- run
runsubmodule — the CLI dispatch shared by every binary name. Binary dispatch for thelsofrs/lsf/lsofentry points.- stale
stalesubmodule. Find FDs pointing to deleted files- stall
stallsubmodule. Per-FD socket backpressure classifier — poll each socket FD’s kernel send/recv buffer occupancy over successive samples and classify the direction of the stall.- strutil
strutilsubmodule. String helpers for display — avoid panicking on UTF-8 boundaries.- summary
summarysubmodule. Aggregate FD summary/statistics mode- theme
themesubmodule. Color theme system for the ratatui TUI- top
topsubmodule. Top-N mode — live-sorted processes by FD count, auto-refreshing dashboard- tree
treesubmodule. Process tree view — show parent/child relationships with FD counts- tui_app
tui_appsubmodule. Shared TUI application framework using ratatui- tui_
tabs tui_tabssubmodule. Unified tabbed TUI — single--tuiflag launches all modes as tabs- types
typessubmodule.- watch
watchsubmodule. Watch mode — monitor who opens/closes a specific file over time