Networking: Commands Overview
An overview of essential commands for network diagnostics and management.
ip
The modern tool for showing and manipulating routing, devices, policy routing and tunnels.
ip addr showping
Sends ICMP ECHO_REQUEST packets to network hosts to check for connectivity.
ping google.comss
A utility to investigate sockets. It has replaced the classic `netstat` command.
ss -tulnnetstat
Prints network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Largely considered obsolete, replaced by `ss`.
netstat -tulndig
DNS lookup utility. Used to query DNS servers for various record types.
dig A google.comtraceroute
Prints the route packets trace to network host.
traceroute google.comcurl
A powerful tool for transferring data from or to a server, using one of many supported protocols (HTTP, FTP, etc.).
curl -I https://google.comwget
A non-interactive tool for downloading files from the web. It can run in the background.
wget https://example.com/file.zipnmap
"Network Mapper" is a powerful tool for network discovery and security auditing. It can discover hosts and services on a network.
nmap -sV example.comiptables
A user-space utility program that allows a system administrator to configure the IP packet filter rules of the Linux kernel firewall.
iptables -L -n -vufw
"Uncomplicated Firewall" is a user-friendly front-end for managing iptables firewall rules.
sudo ufw status