Skip to content

Instantly share code, notes, and snippets.

@rferreiraperez
Created July 30, 2024 08:56
Show Gist options
  • Save rferreiraperez/f07a07368791dbdb0dbc10b9e2ce7437 to your computer and use it in GitHub Desktop.
Save rferreiraperez/f07a07368791dbdb0dbc10b9e2ce7437 to your computer and use it in GitHub Desktop.

NETWORK TOOLS

Ping a Host

ping <hostname or IP>

Check Network Connections, Routing Tables, Interface Statistics, Masquerade Connections, and Multicast Memberships

netstat -tuln

Display the IP Address and Other Information of Network Interfaces

ifconfig

Display Routing Table Information

route -n

Display DNS Information

nslookup <domain>

Display Network Interface Statistics

ifstat

Test Network Speed

speedtest-cli

Display Open Ports and Services

sudo lsof -i -P -n

Check for Listening Ports

ss -tuln

Traceroute to a Host

traceroute -p <port> <hostname or IP>

Check traffic to a specific IP Address and Port

sudo apt-get update
sudo apt-get install netcat
nc -zv <ip> <port>
  • -z tells Netcat to only scan for listening services without sending any data.
  • -v enables verbose mode, providing more details about the operation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment