Theopfr Somo_raw
Title: GitHub - theopfr/somo: A human-friendly alternative to netstat for socket and port monitoring on Linux.
URL Source: https://github.com/theopfr/somo
Markdown Content: GitHub - theopfr/somo: A human-friendly alternative to netstat for socket and port monitoring on Linux.
===============
Skip to content Navigation Menu —————
Toggle navigation
Appearance settings
- Product
* [GitHub Copilot Write better code with AI](https://github.com/features/copilot)
* [GitHub Models New Manage and compare prompts](https://github.com/features/models)
* [GitHub Advanced Security Find and fix vulnerabilities](https://github.com/security/advanced-security)
* [Actions Automate any workflow](https://github.com/features/actions)
* [Codespaces Instant dev environments](https://github.com/features/codespaces)
* [Issues Plan and track work](https://github.com/features/issues)
* [Code Review Manage code changes](https://github.com/features/code-review)
* [Discussions Collaborate outside of code](https://github.com/features/discussions)
* [Code Search Find more, search less](https://github.com/features/code-search)
Explore * Why GitHub * All features * Documentation * GitHub Skills * Blog
- Solutions
By company size * Enterprises * Small and medium teams * Startups * Nonprofits
By use case * DevSecOps * DevOps * CI/CD * View all use cases
By industry * Healthcare * Financial services * Manufacturing * Government * View all industries
- Resources
Topics * AI * DevOps * Security * Software Development * View all
Explore * Learning Pathways * Events & Webinars * Ebooks & Whitepapers * Customer Stories * Partners * Executive Insights
- Open Source
* [GitHub Sponsors Fund open source developers](https://github.com/sponsors)
* [The ReadME Project GitHub community articles](https://github.com/readme)
Repositories * Topics * Trending * Collections
- Enterprise
* [Enterprise platform AI-powered developer platform](https://github.com/enterprise)
Available add-ons * GitHub Advanced Security Enterprise-grade security features * Copilot for business Enterprise-grade AI features * Premium Support Enterprise-grade 24/7 support
Search or jump to…
Search code, repositories, users, issues, pull requests…
Search
Clear
Provide feedback
We read every piece of feedback, and take your input very seriously.
- Include my email address so I can be contacted
Cancel Submit feedback
Saved searches
Use saved searches to filter your results more quickly
Name
Query
To see all available qualifiers, see our documentation.
Cancel Create saved search
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- NotificationsYou must be signed in to change notification settings
- Fork 20
- Star 755
A human-friendly alternative to netstat for socket and port monitoring on Linux.
License
755 stars20 forksBranchesTagsActivity
NotificationsYou must be signed in to change notification settings
- Code
- Issues 10
- Pull requests 3
- Actions
- Projects 0
- Security### Uh oh! There was an error while loading.Please reload this page.
- Insights
Additional navigation options
theopfr/somo
master
Go to file
Code
Open more actions menu
Folders and files
Name | Name | Last commit message | Last commit date |
---|---|---|---|
Latest commit ————- |
|||
.github | .github | change release to be manual trigger, no version bumps needed on every… | Jun 11, 2025 |
images | images | add license, update preview image to not look like macos anymore | Jun 10, 2025 |
src | src | Added test for get_connections_formatted function. Changed formatting… | Jun 12, 2025 |
.gitignore | .gitignore | ignored .idea | Jun 12, 2025 |
Cargo.lock | Cargo.lock | Implemented output in json format with flag –json. Implemented outpu… | Jun 12, 2025 |
Cargo.toml | Cargo.toml | Implemented output in json format with flag –json. Implemented outpu… | Jun 12, 2025 |
LICENSE | LICENSE | Update LICENSE | Jun 10, 2025 |
README.md | README.md | fix typo | Jun 10, 2025 |
View all files |
Repository files navigation
A human-friendly alternative to netstat for socket and port monitoring on Linux.
✨ Features:
- pleasing to the eye thanks to a nice table-view
- filterable (see filter-options below)
- interactive killing of processes
- from
netstat -tulpn
tosomo -l
(almost half the characters, can you believe it?)
⬇️ Installation:
Option 1 - Debian:
If you use a Debian OS go to releases and download the latest .deb release.
Option 2 - From crates.io:
undefinedshell cargo install somo undefined
Most of the time you will want to run this in sudo
mode to see all processes and ports. By default, this is not possible when installed via cargo. But you can create a symlink so the binary can be run as root:
undefinedshell sudo ln -s ~/.cargo/bin/somo /usr/local/bin/somo sudo somo # this works now undefined
🏃♀️ Running somo:
To run somo just type:
undefinedshell sudo somo undefined
Filtering:
You can use the following flags to filter based on different attributes:
filter flag | description | value |
---|---|---|
--proto |
filter by either TCP or UDP | tcp or udp |
--port, -p |
filter by a local port | port number, e.g 5433 |
--remote-port |
filter by a remote port | port number, e.g 443 |
--ip |
filter by a remote IP | IP address e.g 0.0.0.0 |
--program |
filter by a client program | program name e.g chrome |
--pid, -p |
filter by a PID | PID number, e.g 10000 |
--open, -o |
filter by open connections | - |
--listen, -l |
filter by listening connections | - |
--exclude-ipv6 |
don’t list IPv6 connections | - |
Process killing:
With the --kill, -k
flag you can choose to kill a process after inspecting the connections using an interactive selection option.
You can of course also apply filters and the kill-flag at the same time:
undefinedshell somo –program postgres -k undefined
About
A human-friendly alternative to netstat for socket and port monitoring on Linux.
Resources
License
Uh oh!
There was an error while loading. Please reload this page.
Stars
Watchers
Forks
Releases 2
🎉 Somo Release 1.0.0 Latest Jun 4, 2025
Packages 0
No packages published
Uh oh!
There was an error while loading. Please reload this page.
Contributors 3
Languages
Footer
Footer navigation
You can’t perform that action at this time.