Command hub

Networking commands

Windows networking commands mapped to Linux tools such as ip, ss, dig, nmcli, curl, wget, ssh, scp, tcpdump and nmap.

DNSDiagnosticsHTTPIP configurationNetworkingPacket CapturePortsRemote AccessRoutes/NeighborsSMBWi-Fi

Distro notes

Debian/Ubuntu vs Fedora vs Arch

Networking

Debian/Ubuntu apt sudo apt install dnsutils traceroute mtr-tiny tcpdump nmap

Ubuntu desktop commonly uses NetworkManager; servers may use systemd-networkd or Netplan.

Fedora dnf sudo dnf install bind-utils traceroute mtr tcpdump nmap

Fedora defaults to NetworkManager and firewalld on most editions.

Arch pacman sudo pacman -S bind traceroute mtr tcpdump nmap

Arch only has what you install; enable NetworkManager or systemd-networkd explicitly.

Guides

All Networking command guides

72 commands

PowerShell Get-DnsClientServerAddressresolvectl 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-DnsClientServerAddressnmcli 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 MXdig 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 TXTdig 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 /displaydnsresolvectl 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 dnsnmcli 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 dnsserversnmcli 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-Connectionping 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 -Portnc -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 -TraceRoutetraceroute 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 → portqrync -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 -OutFilecurl -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 -Lcurl -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 -ocurl -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 headerscurl -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 testopenssl 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-NetAdapterip 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-NetIPAddressip 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 /allip 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-DnsNamedig 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-NetConnectionnc -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 -aip 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 /transferwget -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 → ftpscp / 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 → getmacip 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 → hostnamehostnamectl 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 → ipconfigip 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 /flushdnssystemd-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 /renewdhclient 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 / w32tmtimedatectl 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 usemount / 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 viewsmbclient -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 interfaceip 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 proxyenv | 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 interfacesnmcli 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 networksnmcli 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 profilesnmcli 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 → netstatss -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 → nslookupdig / 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 → pathpingmtr 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 → pingping 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 → pktmonsudo 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 printip 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 → scpscp 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 → sshssh 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 → telnetnc 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 → tracerttraceroute 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 startsudo 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 stoppkill 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-NetTCPConnectionss -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 -absudo 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 -anoss -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 -sss -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 → mstscxfreerdp /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 -dsudo 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 -ssudo 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 -rnip 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 addsudo 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 changesudo 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 deletesudo 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 -Anmblookup -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 sharenet 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: /deletesudo 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\sharesudo 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 \serversmbclient -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 profilenmcli 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 connectnmcli 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 profilenmcli 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 profilenmcli 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=clearnmcli 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 →