Skip to content

iocron/nprocs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nprocs — Portable Network Process Viewer

Nprocs is a lightweight, portable shell tool that displays active network connections grouped by process in a clean, human-readable table. It works on macOS and Linux, using only standard UNIX tools and a POSIX-compatible shell.

Preview


Installation

  1. One-liner installation:
    mkdir -p ~/.local/bin && \
    curl -fsSL https://raw.githubusercontent.com/iocron/nprocs/main/nprocs -o ~/.local/bin/nprocs && \
    chmod +x ~/.local/bin/nprocs && \
    export PATH="$HOME/.local/bin:$PATH" && \
    echo "Installation complete! Run 'nprocs' to start."
    
  2. Make sure .local/bin is in your shellprofile (~/.bash_profile or ~/.zshrc):
    export PATH="$HOME/.local/bin:$PATH"

Features

  • Groups network connections by process (PID)
  • Displays:
    • File descriptor
    • Address family (IPv4 / IPv6)
    • Connection state (LISTEN, ESTABLISHED, etc.)
    • Local and remote endpoints
  • Shows the full command line of each process
  • Works with default awk (BSD and GNU)
  • /bin/sh compatible (no Bash required)

Example Output

PID 37662 /usr/bin/myapp
  FD   TYPE   STATE        LOCAL                     REMOTE
  4u   IPv4   LISTEN       127.0.0.1:61606           123.123.123.123

About

Portable shell tool to inspect network sockets per process in a grouped view

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages