0% found this document useful (0 votes)
11 views

Linux Network Commands Cheat Sheet by Linuxsimply

Uploaded by

juniortukula8
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Linux Network Commands Cheat Sheet by Linuxsimply

Uploaded by

juniortukula8
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Linux Cheat Sheet

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

Network Testing and Monitoring Network Analysis & Monitoring


Assambles and analyses TCP/IP packets and
Captures and analyzes network traffic in
hping sends packets to a remote host and analyzes tcpdump
real-time
the responses

Works as a combination of traceroute and ping


Scans a network to discover hosts and
mtr commands, sends packets with the ping time nmap
services or for security
for each hop continuously
nc / netcat Provides the ability to read and write data Displays bandwidth usage in real-time for
bmon
/ncat across network connections individual network interfaces
Measures network latency and packet loss
Monitors current bandwidth for multiple
smokeping between two hosts, runs checks in certain bwm-ng
network interfaces
intervals
Transfers data between two bidirectional byte Displays real-time network bandwidth
socat iftop
streams usage by individual connections
Tests network performance within two
speedometer Displays bandwidth usage in real-time iperf
systems
Measures network performance by performing Monitors and displays network traffic in
speedtest-cli iptraf-ng
a speed test real-time
Displays active network connections, socket
Monitors network traffic by process and
ss statistics, and other network-related nethogs
displays bandwidth usage
information
Keeps track of hourly, daily and monthly
Traces the route packets take discovering MTU
tracepath vnstat network traffic for selected interfaces
along this path
and displays statistics on console

Network Information Security Commands


Shows user login information on a remote Firewall utility that manages packet
finger iptables
system filtering and NAT
Fetches information about domain ownership Intrusion detection system that analyzes
jwhois snort
from various WHOIS servers network traffic for suspicious activity
Captures and analyzes network traffic in
wireshark
a formatted text
Manages system firewall and
ufw adds/deletes/modifies/resets packet
filtering rule

Prepared By: Lamisa Musharrat Copyright ©2023 linuxsimply.com| All rights reserved.

You might also like