Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

list used ports on mac

sudo lsof -PiTCP -sTCP:LISTEN

COMMAND     PID      USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
GitHub      850 grgarside   6u   IPv4 0x23c345381d089301      0t0  TCP localhost:25035 (LISTEN)
Comment

mac list used port

sudo lsof -i -P | grep LISTEN
Comment

mac list used port

sudo lsof -nP -i4TCP:$PORT | grep LISTEN
Comment

mac list used port

sudo lsof -nP -iTCP:$PORT | grep LISTEN
sudo lsof -nP -i:$PORT | grep LISTEN
Comment

PREVIOUS NEXT
Code Example
Shell :: add description to commit git 
Shell :: increase volume from terminal 
Shell :: -s and --save 
Shell :: sudo without password linux 
Shell :: how to run a command from history linux 
Shell :: change sshd config 
Shell :: origin branch still showing in vscode though deleted 
Shell :: modify an existing singularity container 
Shell :: samtools extract sequence from bam file 
Shell :: partager le wifi de son pc ubuntu a son telephone 
Shell :: cordova ios emulators 
Shell :: get logstash version 
Shell :: upgrade dart in flutter 
Shell :: postgresql status ubuntu 
Shell :: windows tail command powershell 
Shell :: cloning kali-anonsurf in linux 
Shell :: linux exit file path 
Shell :: chalk Error [ERR_REQUIRE_ESM]: require() of ES Module 
Shell :: ubuntu set path environment variable permanently 
Shell :: reload vimrc without exiting 
Shell :: foreach loop powershell 
Shell :: bash convert symlinks to actual files 
Shell :: git create new branch from existing branch 
Shell :: list git config 
Shell :: chmod folder recursive 
Shell :: forever run python script 
Shell :: bash find files with extension 
Shell :: batch command run exe 
Shell :: linux pfx to pem 
Shell :: powershell get process name by port 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =