Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Basic System Info

set - prints various environment variables ver - prints Windows version systeminfo - prints system information

Networking

ipconfig /all - prints network information including Gateways, Subnets, MAC addresses ping - (same as on Linux) send ICMP requests tracert - (similar to traceroute on Linux) prints the network route traversed to reach the target nslookup - prints IP address of the given domain name netstat - displays current network connections and listening ports

File System

cd - current directory dir - (like ls) print list of directory dir /a - list hidden files dir /s - display files in subdirectories as well tree - same as on Mac type - similar to cat del or erase - deletes files move - moves files mkdir and rmdir are self-explanatory Wildcard character * is supported.

Tasks and Processes

tasklist - display list of processes running tasklist /? - help tasklist /FI "<filter condition>" - filter out certain process taskkill /PID <target_pid> - terminate the process with PID

Other commands

chkdsk - check file system and disk volumes for errors and bad sectors driverquery - display installed drivers sfc /scannow - scan system files for corruption and repair if possible