EMZETT.
Login

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

CommandPurpose
ipconfigshows your own IP configuration, more with /all, a new address with /renew ([[ipconfig
pingtests whether a target is reachable and measures the response time ([[ping
nslookupasks a [[dns-server
tracertshows the routers on the way to the target ([[tracert
netstat -anlists open connections and ports
arp -ashows the mapping of IP to MAC addresses ([[arp
getmacshows the [[mac-adressen
hostnameshows the computer name
route printshows the routing table

System and files

CommandPurpose
dir, cd, mkdir, copy, delview, change, create, copy, delete folders and files
clsclear the screen
systeminfodata about the system
tasklist, taskkillshow and end processes
chkdskcheck a drive
sfc /scannowcheck 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