Privacy Policy
© 2025 linux101.dev

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 show

ping

Sends ICMP ECHO_REQUEST packets to network hosts to check for connectivity.

ping google.com

ss

A utility to investigate sockets. It has replaced the classic `netstat` command.

ss -tuln

netstat

Prints network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Largely considered obsolete, replaced by `ss`.

netstat -tuln

dig

DNS lookup utility. Used to query DNS servers for various record types.

dig A google.com

traceroute

Prints the route packets trace to network host.

traceroute google.com

curl

A powerful tool for transferring data from or to a server, using one of many supported protocols (HTTP, FTP, etc.).

curl -I https://google.com

wget

A non-interactive tool for downloading files from the web. It can run in the background.

wget https://example.com/file.zip

nmap

"Network Mapper" is a powerful tool for network discovery and security auditing. It can discover hosts and services on a network.

nmap -sV example.com

iptables

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 -v

ufw

"Uncomplicated Firewall" is a user-friendly front-end for managing iptables firewall rules.

sudo ufw status