Knowledge Centre

Windows & Linux commands quick reference

The following tasks have similar functions in Windows and Linux, but the commands used to perform them are different. This quick reference is designed to help you find the right command for the right operating system.

Windows Vs Linux

Networking Command Cheat Sheet.

Task Windows Linux
Show IP Configuration ifconfig ip addr show
Detailed Network Information ipconfig /all ip addr show
Release IP Address ipconfig /release sudo dhclient -r <iface>
Renew IP Address ipconfig /renew sudo dhclient <iface>
Flush DNS Cache ipconfig /flushdns sudo resolvectl flush-caches
Ping a Host ping google.com ping google.com
Continuous Ping ping -t google.com ping google.com (ctrl+c to stop)
Trace Network Path tracert google.com traceroute google.com
DNS Lookup nslookup google.com nslookup google.com
View Routing Table route print ip route show
Display ARP Table arp -a ip neigh show
Check Listening Ports netstat -ano ss -tuln
Test TCP Port Connectivity telnet host port or Test-NetConnection nc -zv host port
Network Statistics netstat -e ip -s link
Show Active Connections netstat -an ss -tan
Display MAC Address getmac ip link show
Display Host Name hostname hostname
SSH into Remote Host ssh user@host ssh user@host
Secure Copy Files scp user@host:/path/to/file /local/path/ scp user@host:/path/to/file /local/path/