port-to-process
port-to-process: Given a port number, look up any associated process and pid
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.5%) to scientific vocabulary
Repository
port-to-process: Given a port number, look up any associated process and pid
Basic Info
- Host: GitHub
- Owner: SixArm
- License: other
- Language: Shell
- Default Branch: main
- Size: 8.79 KB
Statistics
- Stars: 13
- Watchers: 4
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
port-to-process
Given a system port number, show what proccesses are listening on the port.
Syntax:
sh
port-to-process <port number> ...
Example:
sh
port-to-process 80
Example to check ports for SSH, HTTP, IRC:
sh
port-to-process 22 80 194
Example to kill port processes:
sh
port-to-process 80 | xargs kill -9
Install
Option 1: download the file to wherever you want, then make it executable.
cd /usr/local/bin/
sudo curl -O https://raw.githubusercontent.com/SixArm/port-to-process/master/port-to-process
sudo chmod +x port-to-process
Option 2: clone the repo to anywhere you want, then add it to your path.
cd /anywhere/you/want
git clone https://github.com/SixArm/port-to-process.git
export PATH="$PATH:/anywhere/you/want/port-to-process"
If you would like to help us by writing a package for any popular package manager, such as apt, yum, brew, etc., we wecome help.
Implementation
This program aims to run on a wide variety of current Unix systems:
- Debian, Ubuntu, Mint, etc.
- RedHat, Fedora, CentOS, etc.
- macOS
This program looks up the port information using a variety of commands such as:
ss -lptn 'sport = :80'lsof -n -i :80netstat --numeric --listening --program | grep 80fuser -v -n tcp 80sockstat -4 -l | grep :80 | awk '{print $3}' | head -1
Tracking
- Command: port-to-process
- Version: 4.1.1
- Updated: 2023-04-25T11:13:34Z
- License: GPL-2.0 or GPL-3.0 or contact us for custom
- Contact: Joel Parker Henderson (http://joelparkerhenderson.com)
Owner
- Name: SixArm
- Login: SixArm
- Kind: organization
- Email: sixarm@sixarm.com
- Location: San Francisco
- Website: http://sixarm.com
- Twitter: sixarm
- Repositories: 580
- Profile: https://github.com/SixArm
SixArm Software
Citation (CITATION.cff)
cff-version: 1.2.0
title: port-to-process
message: >-
If you use this work and you want to cite it,
then you can use the metadata from this file.
type: software
authors:
- given-names: Joel Parker
family-names: Henderson
email: joel@joelparkerhenderson.com
affiliation: joelparkerhenderson.com
orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
- type: url
value: 'https://github.com/SixArm/port-to-process/'
description: port-to-process
repository-code: 'https://github.com/SixArm/port-to-process/'
abstract: >-
port-to-process
license: See license file
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Committers
Last synced: 12 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Joel Parker Henderson | j****l@j****m | 15 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0