Install portview Port Inspection Tool on Ubuntu 26.04

Install portview Port Inspection Tool on Ubuntu 26.04

The portview is a lightweight terminal-based port inspection utility that helps identify listening ports and the services associated with them. It offers a fast way to examine network activity directly from the command line and also supports the MCP server, allowing AI agents to access port inspection capabilities. This tutorial explains how to install portview port inspection tool on Ubuntu 26.04.

Install portview

Download the latest release from the GitHub project and extract the binary into the system executable directory:

curl -sSL https://github.com/Mapika/portview/releases/latest/download/portview-linux-x86_64.tar.gz \
  | sudo tar xz -C /usr/local/bin portview

Verify that the installation completed successfully by displaying the portview version:

portview --version

Testing portview

Execute the portview with administrative privileges to display the currently open ports and listening services on the system:

sudo portview

The command scans the local machine and presents the detected network ports in the terminal, providing a quick overview of services that are accepting incoming connections.

 4 listening ports
╭──────┬───────┬──────┬──────────────┬─────────────────┬──────────────────┬────────┬───────┬───────────────────────────────────╮
│ PORT │ PROTO │ PID  │ ADDR         │ USER            │ PROCESS          │ UPTIME │ MEM   │ COMMAND                           │
├──────┼───────┼──────┼──────────────┼─────────────────┼──────────────────┼────────┼───────┼───────────────────────────────────┤
│ 22   │ TCP   │ 2020 │ 0.0.0.0      │ root            │ sshd             │    25s │  8 MB │ sshd: /usr/sbin/sshd ...          │
│ 53   │ TCP   │ 1057 │ 127.0.0.54   │ systemd-resolve │ systemd-resolved │    27s │ 14 MB │ /usr/lib/systemd/systemd-resolved │
│ 53   │ UDP   │ 1057 │ 127.0.0.54   │ systemd-resolve │ systemd-resolved │    27s │ 14 MB │ /usr/lib/systemd/systemd-resolved │
│ 68   │ UDP   │ 1646 │ 192.168.0.20 │ systemd-network │ systemd-networkd │    26s │ 12 MB │ /usr/lib/systemd/systemd-networkd │
╰──────┴───────┴──────┴──────────────┴─────────────────┴──────────────────┴────────┴───────┴───────────────────────────────────╯

Uninstall portview

If the portview is no longer required, remove the executable from the system binary directory:

sudo rm -rf /usr/local/bin/portview

Leave a Comment

Cancel reply

Your email address will not be published.