ipconfig.co.uk

Command index A–Z

Every command mentioned on this site, in one place. Windows, PowerShell, macOS, Linux and BSD are mixed together on purpose: the job is the same, only the spelling changes.

ApplicationHTTP, SSH, SMBcurl, ssh, browserTransportTCP, UDP portsnetstat, ss, lsof, nc, Test-NetConnectionNetworkIP addresses, routingipconfig, ifconfig, ip addr/route, ping, tracerouteLinkMAC addresses, ARP, Wi-Fiarp, ip neigh, ip link, ethtool, iw, netsh wlanPhysicalcable, radio, link lightethtool (speed/duplex), rfkill, the LED
Where each family of tools looks: from the cable up to the application.
CommandPlatformPurpose
arpWin/mac/LinuxShow or edit the ARP cache (IP to MAC)→
arp-scanLinux/macList every host on the segment with vendor→
arpingLinux/macPing at the ARP layer; detect duplicate addresses→
avahi-browse / avahi-resolveLinuxBrowse and resolve mDNS (.local) services and names→
bridgeLinuxBridge FDB and VLAN filtering (iproute2)→
Clear-DnsClientCachePowerShellFlush the DNS cache→
curlAllHTTP client; port tests; public IP (curl ipconfig.co.uk/ip)→
dhclientLinuxISC DHCP client: release and renew→
dhcpcdLinux/BSDDHCP client (Raspberry Pi OS, Arch, NetBSD)→
dhcpleasectlOpenBSDShow and request DHCP leases→
digLinux/macDNS lookups in full detail→
dladm / ipadmSolaris/illumosLink and IP configuration→
dns-sdmacOSBrowse and query Bonjour services→
drill / kdig / doggoLinuxAlternative DNS query tools→
dscacheutilmacOSFlush or query the Directory Services cache; resolve as the system does→
ethtoolLinuxLink speed, duplex, driver, offloads, NIC statistics→
firewall-cmdLinuxfirewalld front end (Fedora, RHEL)→
Get-DnsClientServerAddressPowerShellConfigured DNS servers→
Get-NetAdapterPowerShellAdapters, status, link speed, MAC→
Get-NetIPAddressPowerShellIP addresses per interface→
Get-NetIPConfigurationPowerShellThe ipconfig equivalent as objects→
Get-NetNeighborPowerShellARP/NDP cache→
Get-NetRoutePowerShellRouting table→
Get-NetTCPConnectionPowerShellConnections and listeners→
getent hostsLinuxResolve a name the way applications do (nsswitch)→
getmacWindowsMAC addresses of all adapters→
hostLinux/macTerse DNS lookups→
hostnameAllShow (and on Unix set) the computer name→
hostnamectlLinuxShow and set hostnames on systemd→
ifconfigLinux/mac/BSDInterface configuration, the 1983 original→
ifup / ifdownDebian/BSDBring interfaces up or down from config files→
ipLinuxAddresses, links, routes, neighbours, namespaces (iproute2)→
ip a / ip r / ip nLinuxThe ip command shortcuts→
ipconfigWindowsShow TCP/IP configuration, DHCP release/renew, DNS cache→
ipconfig (macOS)macOSControl the IP configuration agent: getifaddr, getpacket, set→
iperf3AllThroughput between two machines→
iptables / ip6tablesLinuxLegacy packet filter front end→
iwLinuxWireless configuration and status (nl80211)→
iwconfig / iwlist / iwgetidLinuxLegacy wireless-tools→
iwctlLinuxiwd client for Wi-Fi→
lsof -imac/LinuxWhich process owns which socket→
mtrLinux/macContinuous traceroute with loss per hop→
nbtstatWindowsNetBIOS names and cache→
nc / ncatLinux/macPort tests, raw TCP/UDP→
ndpmacOS/BSDIPv6 neighbour cache→
netplanUbuntuYAML network configuration→
netshWindowsThe network shell: interface, wlan, advfirewall, winsock…→
netstatAllConnections, listeners, routes, interface statistics→
networkctlLinuxsystemd-networkd status and control→
networksetupmacOSPersistent network configuration per service→
New-NetIPAddress / Set-DnsClientServerAddressPowerShellSet a static address and DNS→
nftLinuxnftables packet filter→
nmapAllHost discovery and port scanning (your own network)→
nmcli / nmtuiLinuxNetworkManager command line and text UI→
nslookupAllDNS lookups→
pathpingWindowsTraceroute plus per-hop loss→
pfctlmacOS/BSDThe pf packet filter→
ping / ping6AllReachability and round-trip time→
pktmonWindowsBuilt-in packet capture→
Resolve-DnsNamePowerShellDNS lookups via the Windows resolver→
resolvectl / systemd-resolveLinuxsystemd-resolved: DNS servers, queries, flush→
rfkillLinuxRadio kill switches (Wi-Fi, Bluetooth blocked?)→
routeAllRouting table: print, add, delete→
scutilmacOSSystem configuration store: DNS, proxies, hostnames→
show ip interface briefCisco IOSThe ipconfig of routers and switches→
socketfilterfwmacOSThe application firewall→
speedtest / speedtest-cliAllInternet speed test→
ssLinuxSockets: listeners and connections (replaces netstat)→
sysctlLinux/mac/BSDKernel network parameters (forwarding, IPv6, temp addresses)→
tcpdumpLinux/mac/BSDPacket capture→
telnetAllCrude port test→
Test-ConnectionPowerShellPing as objects→
Test-NetConnectionPowerShellPing, port test, traceroute in one cmdlet→
tracepathLinuxTraceroute without root, discovers path MTU→
traceroute / tracert / traceroute6AllThe path to a host→
tshark / WiresharkAllPacket analysis→
ufwLinuxUncomplicated Firewall (Ubuntu)→
wdutilmacOSWi-Fi diagnostics (replaces airport)→
whoisAllDomain and IP registration data→
winipcfgWindows 9xThe graphical ancestor of ipconfig→
wpa_supplicant / wpa_cliLinux/BSDWPA authentication without a manager→

Looking for a message rather than a command? See Error messages A–Z. Looking for the same task on several platforms? See the cheat sheet.

Last reviewed . Command syntax verified against Windows 11, Ubuntu 24.04, macOS 15 and FreeBSD 14 unless noted otherwise.

Spotted a mistake or a switch we have missed? Every page on this site is written to be checked against real output, so please test on your own machine and compare.