sudo apt install dnsutils traceroute mtr-tiny tcpdump nmap
Ubuntu desktop commonly uses NetworkManager; servers may use systemd-networkd or Netplan.
Commands, distributions, and practical Linux guidance
Command hub
Windows networking commands mapped to Linux tools such as ip, ss, dig, nmcli, curl, wget, ssh, scp, tcpdump and nmap.
Distro notes
Networking
sudo apt install dnsutils traceroute mtr-tiny tcpdump nmap
Ubuntu desktop commonly uses NetworkManager; servers may use systemd-networkd or Netplan.
sudo dnf install bind-utils traceroute mtr tcpdump nmap
Fedora defaults to NetworkManager and firewalld on most editions.
sudo pacman -S bind traceroute mtr tcpdump nmap
Arch only has what you install; enable NetworkManager or systemd-networkd explicitly.
Guides
72 commands
PowerShell Get-DnsClientServerAddress→resolvectl dns
DNS
Show resolver DNS servers
Prints DNS servers known to systemd-resolved.
Distro equivalents
Debian/Ubuntu
resolvectl dns
Fedora
resolvectl dns
Arch
resolvectl dns
Open full guide →
PowerShell Set-DnsClientServerAddress→nmcli con mod "CONNECTION" ipv4.dns "1.1.1.1"
DNS
Set DNS resolver
Sets DNS servers on a NetworkManager connection.
Distro equivalents
Debian/Ubuntu
nmcli con mod "CONNECTION" ipv4.dns "1.1.1.1"
Fedora
nmcli con mod "CONNECTION" ipv4.dns "1.1.1.1"
Arch
nmcli con mod "CONNECTION" ipv4.dns "1.1.1.1"
Open full guide →
Resolve-DnsName -Type MX→dig MX example.com
DNS
Query MX records
Looks up mail-exchanger DNS records.
Distro equivalents
Debian/Ubuntu
dig MX example.com
Fedora
dig MX example.com
Arch
dig MX example.com
Open full guide →
Resolve-DnsName -Type TXT→dig TXT example.com
DNS
Query TXT records
Looks up TXT DNS records.
Distro equivalents
Debian/Ubuntu
dig TXT example.com
Fedora
dig TXT example.com
Arch
dig TXT example.com
Open full guide →
ipconfig /displaydns→resolvectl statistics
DNS
Inspect DNS resolver cache status
Shows resolver/cache statistics on systemd-resolved systems.
Distro equivalents
Debian/Ubuntu
resolvectl statistics
Fedora
resolvectl statistics
Arch
resolvectl statistics
Open full guide →
netsh interface ipv4 set dns→nmcli con mod "CONNECTION" ipv4.dns "1.1.1.1 8.8.8.8"
DNS
Set DNS servers
Configures DNS servers for a NetworkManager connection.
Distro equivalents
Debian/Ubuntu
nmcli con mod "CONNECTION" ipv4.dns "1.1.1.1 8.8.8.8"
Fedora
nmcli con mod "CONNECTION" ipv4.dns "1.1.1.1 8.8.8.8"
Arch
nmcli con mod "CONNECTION" ipv4.dns "1.1.1.1 8.8.8.8"
Open full guide →
netsh interface ipv4 show dnsservers→nmcli device show | grep DNS
DNS
Show DNS servers
Displays DNS servers assigned to active network devices.
Distro equivalents
Debian/Ubuntu
nmcli device show | grep DNS
Fedora
nmcli device show | grep DNS
Arch
nmcli device show | grep DNS
Open full guide →
PowerShell Test-Connection→ping host
Diagnostics
Send ICMP echo requests
Tests reachability with ICMP pings.
Distro equivalents
Debian/Ubuntu
ping host
Fedora
ping host
Arch
ping host
Open full guide →
Test-NetConnection -Port→nc -vz host 443
Diagnostics
Test TCP port
Checks whether a TCP port accepts connections.
Distro equivalents
Debian/Ubuntu
nc -vz host 443
Fedora
nc -vz host 443
Arch
nc -vz host 443
Open full guide →
Test-NetConnection -TraceRoute→traceroute host
Diagnostics
Trace network route
Shows hop-by-hop path to a target.
Distro equivalents
Debian/Ubuntu
traceroute host
Fedora
traceroute host
Arch
traceroute host
Open full guide →
portqry→nc -vz host port
Diagnostics
Query TCP port
Tests if a remote TCP port is reachable.
Distro equivalents
Debian/Ubuntu
nc -vz host port
Fedora
nc -vz host port
Arch
nc -vz host port
Open full guide →
Invoke-WebRequest -OutFile→curl -L -o file URL
HTTP
Download web file
Downloads a URL to a specific output file.
Distro equivalents
Debian/Ubuntu
curl -L -o file URL
Fedora
curl -L -o file URL
Arch
curl -L -o file URL
Open full guide →
curl.exe -L→curl -L URL
HTTP
Follow redirects
Downloads or requests a URL while following redirects.
Distro equivalents
Debian/Ubuntu
curl -L URL
Fedora
curl -L URL
Arch
curl -L URL
Open full guide →
curl.exe -o→curl -L -o file URL
HTTP
Download URL to file
Saves an HTTP response to a local file.
Distro equivalents
Debian/Ubuntu
curl -L -o file URL
Fedora
curl -L -o file URL
Arch
curl -L -o file URL
Open full guide →
curl.exe headers→curl -I URL
HTTP
Show HTTP headers
Requests only HTTP response headers.
Distro equivalents
Debian/Ubuntu
curl -I URL
Fedora
curl -I URL
Arch
curl -I URL
Open full guide →
openssl TLS test→openssl s_client -connect host:443 -servername host
HTTP
Inspect TLS connection
Connects to a TLS service and prints certificate details.
Distro equivalents
Debian/Ubuntu
openssl s_client -connect host:443 -servername host
Fedora
openssl s_client -connect host:443 -servername host
Arch
openssl s_client -connect host:443 -servername host
Open full guide →
PowerShell Get-NetAdapter→ip link show
IP configuration
List network adapters
Shows network interfaces and link state.
Distro equivalents
Debian/Ubuntu
ip link show
Fedora
ip link show
Arch
ip link show
Open full guide →
PowerShell Get-NetIPAddress→ip addr show
IP configuration
List IP addresses
Shows IP addresses assigned to network interfaces.
Distro equivalents
Debian/Ubuntu
ip addr show
Fedora
ip addr show
Arch
ip addr show
Open full guide →
ipconfig /all→ip addr && nmcli device show
IP configuration
Show full network configuration
Displays addresses, interfaces, DNS and connection details.
Distro equivalents
Debian/Ubuntu
ip addr && nmcli device show
Fedora
ip addr && nmcli device show
Arch
ip addr && nmcli device show
Open full guide →
Resolve-DnsName→dig example.com
Networking
Query DNS records
Looks up DNS records such as A, AAAA, MX, TXT and NS entries.
Distro equivalents
Debian/Ubuntu
dig example.com
Fedora
dig example.com
Arch
dig example.com
Open full guide →
Test-NetConnection→nc -vz host port
Networking
Test a TCP port or web endpoint
Checks whether a remote host and port accept connections, or whether an HTTP endpoint responds.
Distro equivalents
Debian/Ubuntu
nc -vz host port
Fedora
nc -vz host port
Arch
nc -vz host port
Open full guide →
arp -a→ip neigh show
Networking
Show the neighbor table
Displays recently discovered IP-to-MAC address mappings for devices on local networks.
Distro equivalents
Debian/Ubuntu
ip neigh show
Fedora
ip neigh show
Arch
ip neigh show
Open full guide →
bitsadmin /transfer→wget -c URL
Networking
Download a file non-interactively
Downloads files from HTTP, HTTPS or FTP sources from a script or terminal session.
Distro equivalents
Debian/Ubuntu
wget -c URL
Fedora
wget -c URL
Arch
wget -c URL
Open full guide →
ftp→scp / sftp
Networking
Transfer files over network
Transfers files between computers over a network. Linux has several options with different security levels.
Distro equivalents
Debian/Ubuntu
scp / sftp
Fedora
scp / sftp
Arch
scp / sftp
Open full guide →
getmac→ip link show
Networking
Display MAC addresses of network interfaces
Shows the hardware (MAC) address of each network interface card.
Distro equivalents
Debian/Ubuntu
ip link show
Fedora
ip link show
Arch
ip link show
Open full guide →
hostname→hostnamectl
Networking
Show or change the computer name
Displays the current host name and, with administrator privileges, changes the persistent system host name.
Distro equivalents
Debian/Ubuntu
hostnamectl
Fedora
hostnamectl
Arch
hostnamectl
Open full guide →
ipconfig→ip addr show
Networking
Show network configuration
Displays IP addresses, network interfaces, and connection details.
Distro equivalents
Debian/Ubuntu
ip addr show
Fedora
ip addr show
Arch
ip addr show
Open full guide →
ipconfig /flushdns→systemd-resolve --flush-caches
Networking
Flush the DNS resolver cache
Clears locally cached DNS records, forcing fresh lookups on the next DNS request.
Distro equivalents
Debian/Ubuntu
sudo resolvectl flush-caches
Fedora
sudo resolvectl flush-caches
Arch
sudo resolvectl flush-caches
Open full guide →
ipconfig /release and /renew→dhclient
Networking
Release and renew DHCP lease
Releases the current DHCP IP address and requests a new one from the DHCP server.
Distro equivalents
Debian/Ubuntu
dhclient
Fedora
dhclient
Arch
dhclient
Open full guide →
net time / w32tm→timedatectl
Networking
View and sync system time via NTP
Shows time synchronisation status and synchronises the system clock with an NTP time server.
Distro equivalents
Debian/Ubuntu
timedatectl
Fedora
timedatectl
Arch
timedatectl
Open full guide →
net use→mount / smbclient
Networking
Connect to network shares
Mounts a network share (Windows SMB/CIFS share or NFS) so you can access it like a local folder.
Distro equivalents
Debian/Ubuntu
mount / smbclient
Fedora
mount / smbclient
Arch
mount / smbclient
Open full guide →
net view→smbclient -L / nmap -sn
Networking
View computers and shares on the network
Lists computers visible on the local network and shared resources on a specific host.
Distro equivalents
Debian/Ubuntu
smbclient -L / nmap -sn
Fedora
smbclient -L / nmap -sn
Arch
smbclient -L / nmap -sn
Open full guide →
netsh int ip set address (static IP)→nmcli con mod
Networking
Configure a static IP address
Assigns a permanent static IP address to a network interface using NetworkManager.
Distro equivalents
Debian/Ubuntu
nmcli con mod CONNECTION ipv4.addresses 192.168.1.50/24 ipv4.gateway 192.168.1.1 ipv4.method manual
Fedora
nmcli con mod CONNECTION ipv4.addresses 192.168.1.50/24 ipv4.gateway 192.168.1.1 ipv4.method manual
Arch
nmcli con mod CONNECTION ipv4.addresses 192.168.1.50/24 ipv4.gateway 192.168.1.1 ipv4.method manual
Open full guide →
netsh interface show interface→ip link show
Networking
List network interfaces
Displays network interfaces and whether each link is up or down.
Distro equivalents
Debian/Ubuntu
ip link show
Fedora
ip link show
Arch
ip link show
Open full guide →
netsh winhttp show proxy→env | grep -i proxy
Networking
Inspect proxy settings
Shows proxy environment variables used by command-line applications and package managers.
Distro equivalents
Debian/Ubuntu
env | grep -i proxy
Fedora
env | grep -i proxy
Arch
env | grep -i proxy
Open full guide →
netsh wlan show interfaces→nmcli device show
Networking
Inspect the active Wi-Fi connection
Shows wireless interfaces, connection state, SSID, signal and other Wi-Fi information.
Distro equivalents
Debian/Ubuntu
nmcli device show
Fedora
nmcli device show
Arch
nmcli device show
Open full guide →
netsh wlan show networks→nmcli device wifi list
Networking
Scan for nearby Wi-Fi networks
Lists visible wireless networks, channels, signal strength and security information.
Distro equivalents
Debian/Ubuntu
nmcli device wifi list
Fedora
nmcli device wifi list
Arch
nmcli device wifi list
Open full guide →
netsh wlan show profiles→nmcli
Networking
Manage Wi-Fi connections
Lists, connects to, and manages wireless network profiles.
Distro equivalents
Debian/Ubuntu
nmcli
Fedora
nmcli
Arch
nmcli
Open full guide →
netstat→ss -tuln
Networking
Show network connections
Displays active network connections, listening ports, and socket statistics.
Distro equivalents
Debian/Ubuntu
ss -tuln
Fedora
ss -tuln
Arch
ss -tuln
Open full guide →
nmap (Nmap for Windows)→nmap
Networking
Network port scanner and host discovery
Scans networks and hosts to discover open ports, running services, OS versions, and security issues.
Distro equivalents
Debian/Ubuntu
nmap
Fedora
nmap
Arch
nmap
Open full guide →
nslookup→dig / nslookup
Networking
Look up DNS records
Queries DNS servers to resolve hostnames to IP addresses and inspect DNS records.
Distro equivalents
Debian/Ubuntu
dig / nslookup
Fedora
dig / nslookup
Arch
dig / nslookup
Open full guide →
pathping→mtr
Networking
Combined ping and traceroute with statistics
Continuously monitors each network hop showing real-time packet loss and latency per hop.
Distro equivalents
Debian/Ubuntu
mtr
Fedora
mtr
Arch
mtr
Open full guide →
ping→ping
Networking
Test network connectivity
Sends ICMP echo requests to test if a host is reachable. Same name, but runs forever by default on Linux.
Distro equivalents
Debian/Ubuntu
ping
Fedora
ping
Arch
ping
Open full guide →
pktmon→sudo tcpdump -i any
Networking
Capture network packets
Captures packets from network interfaces for troubleshooting and protocol analysis.
Distro equivalents
Debian/Ubuntu
sudo tcpdump -i any
Fedora
sudo tcpdump -i any
Arch
sudo tcpdump -i any
Open full guide →
route print→ip route show
Networking
Show the routing table
Displays routes used to decide where network traffic should be sent.
Distro equivalents
Debian/Ubuntu
ip route show
Fedora
ip route show
Arch
ip route show
Open full guide →
scp→scp file user@host:/path/
Networking
Copy files over SSH
Transfers files or directories securely between local and remote systems.
Distro equivalents
Debian/Ubuntu
scp file user@host:/path/
Fedora
scp file user@host:/path/
Arch
scp file user@host:/path/
Open full guide →
ssh→ssh user@host
Networking
Open a secure remote shell
Connects securely to a remote Linux, Unix or SSH-enabled system.
Distro equivalents
Debian/Ubuntu
ssh user@host
Fedora
ssh user@host
Arch
ssh user@host
Open full guide →
telnet→nc host port
Networking
Open a basic TCP connection
Connects to a TCP host and port for simple protocol testing and troubleshooting.
Distro equivalents
Debian/Ubuntu
nc host port
Fedora
nc host port
Arch
nc host port
Open full guide →
tracert→traceroute
Networking
Trace network route to host
Shows each network hop between your machine and a destination, helping diagnose where connections slow down or fail.
Distro equivalents
Debian/Ubuntu
traceroute
Fedora
traceroute
Arch
traceroute
Open full guide →
pktmon start→sudo tcpdump -i any
Packet Capture
Capture packets
Captures packets on all interfaces.
Distro equivalents
Debian/Ubuntu
sudo tcpdump -i any
Fedora
sudo tcpdump -i any
Arch
sudo tcpdump -i any
Open full guide →
pktmon stop→pkill tcpdump
Packet Capture
Stop packet capture
Stops a running tcpdump process.
Distro equivalents
Debian/Ubuntu
pkill tcpdump
Fedora
pkill tcpdump
Arch
pkill tcpdump
Open full guide →
PowerShell Get-NetTCPConnection→ss -tuna
Ports
List TCP connections
Lists active TCP sockets and states.
Distro equivalents
Debian/Ubuntu
ss -tuna
Fedora
ss -tuna
Arch
ss -tuna
Open full guide →
netstat -ab→sudo ss -tulpn
Ports
Show programs using ports
Shows listening sockets and process names with privileges.
Distro equivalents
Debian/Ubuntu
sudo ss -tulpn
Fedora
sudo ss -tulpn
Arch
sudo ss -tulpn
Open full guide →
netstat -ano→ss -tunlp
Ports
Show listening ports and processes
Lists TCP/UDP sockets with process information.
Distro equivalents
Debian/Ubuntu
ss -tunlp
Fedora
ss -tunlp
Arch
ss -tunlp
Open full guide →
netstat -s→ss -s
Ports
Show socket statistics
Summarizes TCP/UDP socket state counts.
Distro equivalents
Debian/Ubuntu
ss -s
Fedora
ss -s
Arch
ss -s
Open full guide →
mstsc→xfreerdp /v:HOST /u:USER
Remote Access
Remote desktop client
Connects to an RDP server from Linux.
Distro equivalents
Debian/Ubuntu
xfreerdp /v:HOST /u:USER
Fedora
xfreerdp /v:HOST /u:USER
Arch
xfreerdp /v:HOST /u:USER
Open full guide →
arp -d→sudo ip neigh flush all
Routes/Neighbors
Clear ARP/neighbor cache
Flushes the neighbor table.
Distro equivalents
Debian/Ubuntu
sudo ip neigh flush all
Fedora
sudo ip neigh flush all
Arch
sudo ip neigh flush all
Open full guide →
arp -s→sudo ip neigh add IP lladdr MAC dev IFACE
Routes/Neighbors
Add static neighbor entry
Adds a static IP-to-MAC neighbor mapping.
Distro equivalents
Debian/Ubuntu
sudo ip neigh add IP lladdr MAC dev IFACE
Fedora
sudo ip neigh add IP lladdr MAC dev IFACE
Arch
sudo ip neigh add IP lladdr MAC dev IFACE
Open full guide →
netstat -rn→ip route
Routes/Neighbors
Show routing table
Prints routes in the kernel routing table.
Distro equivalents
Debian/Ubuntu
ip route
Fedora
ip route
Arch
ip route
Open full guide →
route add→sudo ip route add 10.0.0.0/24 via 192.168.1.1
Routes/Neighbors
Add route
Adds a route to the kernel routing table.
Distro equivalents
Debian/Ubuntu
sudo ip route add 10.0.0.0/24 via 192.168.1.1
Fedora
sudo ip route add 10.0.0.0/24 via 192.168.1.1
Arch
sudo ip route add 10.0.0.0/24 via 192.168.1.1
Open full guide →
route change→sudo ip route replace 10.0.0.0/24 via 192.168.1.254
Routes/Neighbors
Replace route
Changes a route atomically by replacing it.
Distro equivalents
Debian/Ubuntu
sudo ip route replace 10.0.0.0/24 via 192.168.1.254
Fedora
sudo ip route replace 10.0.0.0/24 via 192.168.1.254
Arch
sudo ip route replace 10.0.0.0/24 via 192.168.1.254
Open full guide →
route delete→sudo ip route del 10.0.0.0/24
Routes/Neighbors
Delete route
Removes a route from the kernel routing table.
Distro equivalents
Debian/Ubuntu
sudo ip route del 10.0.0.0/24
Fedora
sudo ip route del 10.0.0.0/24
Arch
sudo ip route del 10.0.0.0/24
Open full guide →
nbtstat -A→nmblookup -A IP
SMB
Query NetBIOS name table
Looks up NetBIOS names for a host.
Distro equivalents
Debian/Ubuntu
nmblookup -A IP
Fedora
nmblookup -A IP
Arch
nmblookup -A IP
Open full guide →
net share→net usershare list
SMB
List Samba user shares
Lists Samba user shares on Linux.
Distro equivalents
Debian/Ubuntu
net usershare list
Fedora
net usershare list
Arch
net usershare list
Open full guide →
net use Z: /delete→sudo umount /mnt/share
SMB
Unmount SMB share
Unmounts a mounted SMB/CIFS share.
Distro equivalents
Debian/Ubuntu
sudo umount /mnt/share
Fedora
sudo umount /mnt/share
Arch
sudo umount /mnt/share
Open full guide →
net use Z: \server\share→sudo mount -t cifs //server/share /mnt/share -o username=user
SMB
Mount SMB share
Mounts a Windows/Samba share into the Linux filesystem.
Distro equivalents
Debian/Ubuntu
sudo mount -t cifs //server/share /mnt/share -o username=user
Fedora
sudo mount -t cifs //server/share /mnt/share -o username=user
Arch
sudo mount -t cifs //server/share /mnt/share -o username=user
Open full guide →
net view \server→smbclient -L //server -U user
SMB
List SMB shares
Lists shares exposed by an SMB server.
Distro equivalents
Debian/Ubuntu
smbclient -L //server -U user
Fedora
smbclient -L //server -U user
Arch
smbclient -L //server -U user
Open full guide →
netsh wlan add profile→nmcli connection import type wifi file profile.nmconnection
Wi-Fi
Import connection profile
Imports a NetworkManager connection profile.
Distro equivalents
Debian/Ubuntu
nmcli connection import type wifi file profile.nmconnection
Fedora
nmcli connection import type wifi file profile.nmconnection
Arch
nmcli connection import type wifi file profile.nmconnection
Open full guide →
netsh wlan connect→nmcli device wifi connect "SSID" password "PASSWORD"
Wi-Fi
Connect to Wi-Fi
Connects to a wireless network from the terminal.
Distro equivalents
Debian/Ubuntu
nmcli device wifi connect "SSID" password "PASSWORD"
Fedora
nmcli device wifi connect "SSID" password "PASSWORD"
Arch
nmcli device wifi connect "SSID" password "PASSWORD"
Open full guide →
netsh wlan delete profile→nmcli connection delete "SSID"
Wi-Fi
Delete saved Wi-Fi profile
Removes a saved NetworkManager connection profile.
Distro equivalents
Debian/Ubuntu
nmcli connection delete "SSID"
Fedora
nmcli connection delete "SSID"
Arch
nmcli connection delete "SSID"
Open full guide →
netsh wlan export profile→nmcli connection export "SSID"
Wi-Fi
Export connection profile
Exports a NetworkManager connection profile.
Distro equivalents
Debian/Ubuntu
nmcli connection export "SSID"
Fedora
nmcli connection export "SSID"
Arch
nmcli connection export "SSID"
Open full guide →
netsh wlan show profile key=clear→nmcli connection show "SSID" --show-secrets
Wi-Fi
Show saved Wi-Fi profile
Shows saved Wi-Fi connection details and secrets when permitted.
Distro equivalents
Debian/Ubuntu
nmcli connection show "SSID" --show-secrets
Fedora
nmcli connection show "SSID" --show-secrets
Arch
nmcli connection show "SSID" --show-secrets
Open full guide →