# Update your system's package list (for Linux users)
sudo apt-get update
# Install tcptraceroute on Linux
sudo apt-get install tcptraceroute
# Using tcptraceroute to trace the route using TCP instead of ICMP
sudo tcptraceroute example.com
# Install traceroute on Linux if not already installed
sudo apt-get install traceroute
# Using standard traceroute
traceroute example.com
# Install mtr, a network diagnostic tool
sudo apt-get install mtr
# Using mtr which combines the functionality of traceroute and ping
mtr example.com
# Install nmap, useful for network exploration and security auditing
sudo apt-get install nmap
# Using nmap to scan for open ports and running services
sudo nmap -A example.com
# Check connectivity and latency to a host using ping
ping example.com
# Using netstat to display network connections, routing tables, interface statistics
netstat -a
# Display active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6)
netstat -s
# Display per-protocol statistics, and the contents of the routing table
netstat -rs