0% found this document useful (0 votes)
10 views2 pages

Linux Network Commands Cheatsheet

Uploaded by

hmrusama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Linux Network Commands Cheatsheet

Uploaded by

hmrusama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Linux Network Commands Cheatsheet

Basic Network Info Commands

ip a or ip addr - Show all IP addresses on your system

ip link - List all network interfaces

ifconfig - Show IPs and interfaces (older)

hostname -I - Show local IP address

hostname - Show system hostname

ip r or ip route - View routing table

Network Testing & Troubleshooting

ping <host> - Check if host is reachable

traceroute <host> - Show path to host

tracepath <host> - Simpler traceroute

nslookup <domain> - DNS lookup

dig <domain> - Advanced DNS info

whois <domain> - Domain registration info

telnet <host> <port> - Test port

nc -zv <host> <port> - Test port (netcat)

curl <URL> - Get web page or API data

wget <URL> - Download from web

Network Statistics & Monitoring

netstat -tuln - Show open ports/services

ss -tuln - Faster netstat

lsof -i - List open internet connections

top / htop - Performance monitoring

iftop - Real-time bandwidth usage

nload - Visual network usage

Wireless & Interface Management

iwconfig - Wireless settings

iwlist scan - Scan for Wi-Fi

nmcli - NetworkManager control


Linux Network Commands Cheatsheet

rfkill list - Wireless status

rfkill unblock wifi - Enable Wi-Fi

Controlling Network Interfaces

ip link set eth0 up/down - Enable/disable Ethernet

ifdown/ifup eth0 - Legacy interface control

dhclient - Request IP from DHCP server

Security / Firewall

ufw status - Check firewall

ufw enable - Enable firewall

ufw allow <port> - Allow port

iptables -L - View firewall rules

Useful Tools (May Need Install)

nmap - Network scanner

net-tools - Old tools (ifconfig, netstat)

wireshark - Graphical packet sniffer

tcpdump - Command-line packet capture

iperf3 - Network speed test

ethtool - Ethernet settings

You might also like