Skip to content

wang70880/useful-bash-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

useful-bash-commands (For Mac)

Tired of always googling commands for tasks (e.g., check if port is open)? A cheatsheet is all you need!

Local Port Scanning (Check if a port on the local machine is occupied)

sudo lsof -i -n -P | grep YOUR_PORT_NUMBER

LAN Port Scanning (Check if a port on a specific local host is occupied)

``nmap -Pn -p PORT_NUMBER 192.168.1.0/24 | grep HOST_NAME

Capture Packets Using Tcpdump

``tcpdump -i any -w PCAP_FILE_PATH host HOST_IP

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published