LinuxCommandLibrary

gruyere

View and kill processes listening on ports

TLDR

Show all processes listening on ports
$ gruyere
copy
Show full command details instead of app names
$ gruyere --details
copy
Filter by a specific port
$ gruyere --port [8000]
copy
Filter by current user
$ gruyere --user
copy

SYNOPSIS

gruyere [--details] [--port PORT] [--user]

DESCRIPTION

gruyere is a tiny and visually appealing TUI program for viewing and killing processes that are listening on network ports. It provides a cleaner alternative to manually using lsof or ss to find which process occupies a port, presenting the information in a readable terminal interface with the ability to terminate processes directly.
The tool displays process names, PIDs, and port numbers in a formatted view, making it easy to identify and manage port conflicts during development.

CAVEATS

Requires appropriate permissions to view and kill processes. Killing system processes may require root privileges. Only shows processes with active listening sockets.

HISTORY

gruyere was created by Savannah Ostrowski as a lightweight utility for developers who frequently need to identify and free up occupied ports. It is written in Rust and named after the Swiss cheese known for its holes, a playful reference to network ports.

SEE ALSO

lsof(1), ss(8), fuser(1), netstat(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard