Linux Network Commands Cheat Sheet by Linuxsimply
Linux Network Commands Cheat Sheet by Linuxsimply
Network Commands
Network Configuration Network Connectivity
Map IP addresses to MAC addresses on a
hostname Shows the hostname of the current system arp
LAN and manage ARP cache
Displays and configures network interfaces,
ip arp -a Prints arp table
routing, and tunnels
Displays and configures wireless network
iwconfig arp -a -d Deletes all arp table entries
interfaces
Reports network status, manage and configure Tests network connectivity among
nmcli network connections, and control the ping host/server and host by sending packets
NetworkManager to a host and measuring the response
Displays and configures the current system's
ifconfig arp -s Adds entry in arp table
network interfaces
Displays active network connections,
Checks the current configuration of network
ifquery netstat routing tables, and other network
interfaces and their parameters
statistics
netplan Configures network interfaces using YAML files netstat -r Prints routing table
Defines network interfaces, IP addresses, Establishes a connection to a remote
netplan gateways, DNS servers, and other network- telnet server/system through a TCP/ IP network
related parameters in a YAML configuration using the Telnet network protocol
Activates a network interface that is currently
ifup route flush Removes all routes
down
Deactivates a network interface that is Displays the route packets take to reach
ifdown traceroute
currently up a remote server through multiple hops
Automatically obtains an IP address and other
dhclient network configuration information from a route Configures the kernel's routing table
DHCP server
Displays information about currently
Utility Commands w
logged-in users
Sends and receives email using the
curl Transfers data from or to a server mail
command line
Supports various protocols for downloading Displays and filters network packet data
aria2 ngrep
files from the internet on a given regex pattern
Modifies network interface settings, such as Displays and configures wireless network
ethtool iw
speed and queries information of those interfaces
Command-line utility for downloading files
wget
from the web DNS & Name Resolution
Performs DNS lookups to resolve
Remote Access Commands nslookup hostnames, IP addresses mapping or any
specific DNS record
Securely connects to a remote system using Performs DNS lookups to resolve
ssh host
the SSH protocol hostnames or IP addresses
Copies files securely between client and server Performs DNS lookups to query
scp dig
using the SSH protocol information about DNS name servers
Securely transfers files between hosts using
sftp
the SFTP protocol
Prepared By: Lamisa Musharrat Copyright ©2023 linuxsimply.com| All rights reserved.
Linux Cheat Sheet
Network Commands
Prepared By: Lamisa Musharrat Copyright ©2023 linuxsimply.com| All rights reserved.