checkport

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 8 Imported by: 0

README

checkport

go tests license

A small tool, written in Go, to check if a port is available or not.

Install

With Go installed, just add checkport:

go install github.com/ewilan-riviere/checkport@latest

Usage

Just check a port:

checkport 3000

Use sudo to know which process uses this port:

sudo checkport 3000
sudo: checkport: command not found

If you installed checkport locally, sudo can failed with sudo: checkport: command not found.

which checkport

Output will be /home/$USER/go/bin/checkport, so you have just to create a symbolic link:

sudo ln -s $(which checkport) /usr/local/bin/

Test

go test -v

License

MIT © Ewilan Rivière

Documentation

Overview

Package checkport is a small tool to check if a port is available or not.

Examples/readme can be found on the GitHub page at https://github.com/ewilan-riviere/checkport

If you want to use it as CLI, you can install it with:

go install github.com/ewilan-riviere/checkport

Then you can use it like this:

checkport 3000

If you use `sudo`, you can have more info about process if port is used:

sudo checkport 3000

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL