#port #xbp #usr-lib

app xbp

XBP is a build pack and deployment management tool to deploy, rust, nextjs etc and manage the NGINX configs below it

1 unstable release

new 0.1.0 Mar 31, 2025

#171 in Unix APIs

Download history 91/week @ 2025-03-28

91 downloads per month

MIT license

59KB
964 lines

XBP is a build pack and deployment management tool to deploy, rust, nextjs etc and manage the NGinx configs below it

Overview

xbp is a command-line tool designed to help you manage and monitor network ports on your system. It provides a simple interface to list active ports and the processes using them.

Features

  • List all active network ports.
  • Filter ports by specific port number.
  • Display detailed information about processes using each port.

Usage

To use xbp, run the following command in your terminal:

List all ports

xbp ports
Port: 53
UID        PID        PPID       C     STIME      TTY        TIME       CMD
--------------------------------------------------------------------------------
systemd+   679167     1          0     Mar30      ?          00:00:01   /usr/lib/systemd/systemd-resolved
--------------------------------------------------------------------------------

Port: 80
UID        PID        PPID       C     STIME      TTY        TIME       CMD
--------------------------------------------------------------------------------
root       768633     1          0     Mar30      ?          Ss         0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data   818553     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818554     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818555     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818556     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818557     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818558     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818559     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818560     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818561     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818562     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818563     768633     0     14:33      ?          S          0:00 nginx: worker process
www-data   818564     768633     0     14:33      ?          S          0:00 nginx: worker process
--------------------------------------------------------------------------------

List all from that specific port

xbp ports -p 3000
Port: 3000
UID        PID        PPID       C     STIME      TTY        TIME       CMD
--------------------------------------------------------------------------------
postgres   2089       1          0     Mar22      ?          00:04:48   /usr/local/bin/postgrest /etc/postgrest.conf
--------------------------------------------------------------------------------

Dependencies

~6–18MB
~236K SLoC