CMD commands
In short: The Windows command prompt (CMD) understands many text commands. Here are the most important ones, mainly for network and system checks.
In more detail: You open CMD through the Windows search (“cmd”). With command /? each command shows its help. More about the program itself is under CMD.
Network
| Command | Purpose |
|---|---|
ipconfig | shows your own IP configuration, more with /all, a new address with /renew ([[ipconfig |
ping | tests whether a target is reachable and measures the response time ([[ping |
nslookup | asks a [[dns-server |
tracert | shows the routers on the way to the target ([[tracert |
netstat -an | lists open connections and ports |
arp -a | shows the mapping of IP to MAC addresses ([[arp |
getmac | shows the [[mac-adressen |
hostname | shows the computer name |
route print | shows the routing table |
System and files
| Command | Purpose |
|---|---|
dir, cd, mkdir, copy, del | view, change, create, copy, delete folders and files |
cls | clear the screen |
systeminfo | data about the system |
tasklist, taskkill | show and end processes |
chkdsk | check a drive |
sfc /scannow | check and repair system files |
Tip: For network troubleshooting first ipconfig (do I have an address?), then ping the gateway, then an internet address, then a name (does DNS work?).
See also: network commands, CMD, Bash