CLI tool
theopfr/somo avatar
theopfr/somo

somo replaces netstat with a sortable table, and its readme documents a build that may not be released

A human-friendly alternative to netstat for socket and port monitoring on Linux and macOS.

2,628 stars69 forksRustMIT

At a glance

What is it?
theopfr/somo is a Rust table view over open sockets with filters, sorting, JSON and template output, interactive process killing and a config file that is just a list of flags. It documents six install routes, two deprecated flags, four shells' worth of completions, and warns at the top that the readme may describe unreleased behaviour.
Who is it for?
somo earns a place on a machine where the default socket listing is unreadable, because the filters, the column sort and the compact mode do the work that piping and grepping were doing for you. Four things to check before you rely on it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 13 days ago.
What is it written in?
Mainly Rust, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • theopfr/somo2,628 ★ · +6
Star history
Repository2026-10-042026-11-22
theopfr/somo2.6k2.6k

6 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The readme may describe flags the released build does not have

The first thing on the page is a note, not a feature list. It says the code and documentation on the default branch may include features that are not yet released, and that the official stable version and its documentation are on the crates.io page. That warning is worth taking seriously for this project specifically, because the manifest on the branch carries the same version number as the newest release, so nothing in the tree tells you which flags are in the crate you would install. The release history shows the branch moving: a patch release in April, another in August, then a minor release in September. A reader on the branch sees a table of filters, two of which are already marked deprecated, and has no way to tell from this repository whether the release has caught up. The fix is cheap and the page names it, so check the published version's documentation before scripting against anything you only found here.

Six install routes, and a crate package that ships the repository

The installation section offers the registry, a Git checkout, a Debian package, an Arch package, a Nix flake and a Homebrew formula. Two of them carry the same warning, that they install the development version and may be unstable or contain incomplete features, and those two are the checkout and the flake, so the two bleeding edge routes are the ones that bypass the registry. Updating later means choosing a different owner for your binary depending on which route you took, which is the usual cost of six package sources. The manifest adds a packaging detail worth knowing: it excludes one path from the published crate, the mock fixtures under the tests directory, and declares no include list. Everything else is packaged, which means the crate tarball on the registry carries the images directory and the Nix directory along with the source.

A symlink into a system path is what makes sudo somo resolve

The tool needs root to see other users' processes and ports, and the page does not stop at saying so. It gives the two commands that make a root invocation work with a registry-installed binary:

sh
sudo ln -s ~/.cargo/bin/somo /usr/local/bin/somo
sudo somo   # this works now

The reason a symlink is needed is that the cargo-installed binary lives in a per user directory that root's invocation does not search, so the fix is to put a link to it somewhere on the root path. This is a manual step with a manual consequence: the link points at one user's cargo directory, so if that directory is removed or the user reinstalls into a different location, the system wide entry stops working. It also means the tool's most powerful feature, choosing a process and killing it interactively after inspecting its connections, runs with the privileges of the whole system. That is the intended design rather than a flaw, and it is worth naming before you hand the flag to a script.

The config file is a list of command line flags

Persistent settings are not stored as a settings format with keys and values. They are stored as the flags themselves, one per line, comments allowed, which means anything you can type on the command line you can put in the file:

bash
# View compact version of the table
--compact
# Sort by PID
--sort=pid

Three subcommands and flags manage it: one generates the file, one prints its path so you can find it, and one ignores the whole file for a single run. The consequence is that your view can change without anything appearing in your shell history, because the settings arrive from a file rather than from the command line. It also means there is no validation layer between the file and the parser beyond what the command line itself does, and no way to see the effective settings other than asking the tool to print the file's location and reading it.

Two filter flags are marked deprecated in place

The filter table keeps the old names rather than deleting them, and marks both. The protocol filter is deprecated in favour of separate TCP and UDP flags, which is a small change in shape: one flag taking a value becomes two boolean flags. The IPv6 exclusion flag is deprecated in favour of an explicit IPv4 flag, and the table adds a constraint that the replacement does not share with the old name, because the new IPv4 flag is mutually exclusive with the IPv6 flag. That is the more interesting half of the pair. An exclusion flag and a family flag answer the same question from opposite directions, so the replacement changes the semantics of a command line that already contains both. Both deprecated flags remain documented with their values, which is the right way to migrate a tool, and it also means a script written two years ago still runs.

--port filters locally while --ip filters remotely

The filter table is where the tool's mental model becomes visible, and one asymmetry is worth catching early. The port filter takes a local port, and there is a separate flag for a remote port, with the example value for the remote one being the port that carries web traffic. The IP filter, by contrast, is documented as filtering by a remote IP, and its example value is the address that means every address. So a user who types a port expecting to find connections to a service on that port gets the opposite side of the connection instead, which is the direction a local service listens on. The program filter, the pid filter and the user filter are unambiguous, and the open, listen and established flags reduce the table to the three states you actually want from a port check.

Two crates on macOS, one on Linux, and four shells of completions

Platform support is per operating system dependency rather than one code path. Linux gets a filesystem crate for the process table, and macOS gets two crates, one for sockets and one for process information, which is why the two platforms can present the same flags while sourcing their data differently. Output handling is the other cross platform concern: when the rows exceed the terminal height the tool pipes into a pager, preferring a pager found on the system, and it reads two environment variables for that choice with its own taking precedence over the general one, plus a flag to turn it off. Completions cover four shells, and each needs its own directory, its own generated file, and in two cases a line appended to the shell's startup file, so enabling them is four small chores rather than one.

The embedded help summary stops mid table

The page reproduces the tool's help output inside a collapsible block, which is a nice idea for a tool with this many flags, and the reproduction stops partway through the options table. It ends at the UDP flag with no description beside it, having shown the kill flag, the deprecated protocol flag and the TCP flag before it. The commands above it are complete, listing the completions generator, the config file generator and the help printer. So the one place a reader can see the authoritative flag summary is incomplete, and the flag table further down is the substitute. Both places also disagree in tone with the rest of the page, which is written as a feature tour with section headings and emoji, so the documentation is really two documents with different conventions sitting on one page.

Editorial conclusion

somo earns a place on a machine where the default socket listing is unreadable, because the filters, the column sort and the compact mode do the work that piping and grepping were doing for you. Four things to check before you rely on it. The flag surface has two deprecated entries, one for protocol and one for IPv6 exclusion, so a script written against the old names will keep working while telling you to move. The config file is applied on every run, which means a stray setting changes what you see without appearing on the command line, and there is a flag that ignores it entirely. The interactive kill needs the same privileges as the listing, so treat it as a root capability rather than a convenience. And the page warns that the readme may describe a build that is not released, so check the crates.io version against the branch you are reading before you trust a flag you only saw here.

Frequently asked questions

How do I install somo?

Six documented routes: install from the crates.io registry with cargo, install a Git checkout with cargo, download a Debian package from the releases page, use the Arch package with yay, build with Nix flakes from the repository's nix directory, or install the Homebrew formula. The checkout and flake routes install development builds and are marked unstable.

Why does somo want to run with sudo?

To see processes and ports owned by other users. The page suggests symlinking the cargo installed binary into a system directory so a root invocation resolves it, since root does not search the per user directory cargo installs into.

What does somo replace, and where does it read its data?

It replaces netstat for socket and port monitoring on Linux and macOS. On Linux it reads the process filesystem through a dedicated crate, and on macOS it uses one crate for sockets and another for process information.

Which somo flags are deprecated?

Two: the protocol flag, superseded by separate TCP and UDP flags, and the exclude IPv6 flag, superseded by an IPv4 flag that is mutually exclusive with the IPv6 flag. Both remain documented with their values.

How does the somo config file work?

It holds command line flags, one per line with comments allowed, that are applied on every run. One subcommand generates it, one flag prints its path, and another flag ignores the file for a single run.

How do I get shell completions for somo?

Run the completions subcommand with bash, zsh, fish or elvish and write the output into that shell's completion directory. Zsh and elvish also need a line added to the shell's startup file so the new directory is loaded.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. Releases
  5. theopfr/somo on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/theopfr-somo.svg)](https://hysenlabs.com/projects/theopfr-somo)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/theopfr-somo.svg)](https://hysenlabs.com/projects/theopfr-somo)

Was this useful?