Linux Commands: Networking¶
Interfaces, connections, transfers and diagnostics, plus mail and user messaging.
Part of the Linux commands cheat sheet.
Networking Commands¶
arp — Manipulate the system ARP cache:
curl — Transfer a URL:
host — DNS lookup utility:
hostid — Print the numeric identifier for the current host:
hostname — Show or set the system's host name:
hostnamectl — Control the system hostname:
ifconfig — Configure a network interface (legacy; use ip):
iftop — Display bandwidth usage on an interface:
ifup — Bring a network interface up:
ip — Show / manipulate routing, network devices, interfaces and tunnels:
ipcrm — Remove a message queue, semaphore set, or shared memory id:
ipcs — Provide information on ipc facilities:
iptables — Administration tool for IPv4 packet filtering and NAT:
iptables-save — Dump iptables rules to stdout:
iwconfig — Configure a wireless network interface:
`nc(netcat)` — Arbitrary TCP and UDP connections and listens:
netstat — Print network connections, routing tables, interface statistics, etc (legacy; use ss):
nmcli — Command-line tool for controlling NetworkManager:
nslookup — Query Internet name servers interactively:
ping — Send ICMP ECHO_REQUEST to network hosts:
rcp — Remote file copy:
route — Show / manipulate the IP routing table:
rsync — Fast, versatile, remote (and local) file-copying tool:
scp — Secure copy:
ssh — OpenSSH SSH client:
tracepath — Traces path to a network host discovering MTU:
traceroute — Print the route packets trace to network host:
vnstat — Console-based network traffic monitor:
wget — The non-interactive network downloader:
Mail and User Communication Commands¶
biff — Be notified if mail arrives and who it is from:
mailq — Print the mail queue:
write — Send a message to another user:
wall — Send a message to everybody's terminal: