Windows Command Prompt Cheat
Sheet
1. Basic Navigation
Command Description
dir Lists files and folders in the current
directory
cd [folder] Change directory
cd .. Go up one directory level
cd \ Go to the root directory
cls Clear the screen
echo [text] Display a message or value
2. File & Folder Operations
Command Description
md [folder] or mkdir [folder] Create a new folder
rd [folder] or rmdir [folder] Delete an empty folder
del [file] Delete a file
copy [source] [destination] Copy files
xcopy [source] [destination] /s /e Copy files and directories
move [source] [destination] Move files
ren [oldname] [newname] Rename files or folders
3. System Information
Command Description
systeminfo View system details
hostname Display computer name
tasklist Show running processes
taskkill /IM [processname] /F Kill a process by name
ipconfig Show IP address and network info
ping [address] Test network connection
netstat Display active network connections
4. Disk & File Management
Command Description
chkdsk Check disk for errors
sfc /scannow Scan and repair system files
diskpart Open disk partition tool
format [drive]: Format a drive
attrib Change file attributes
5. User & Permissions
Command Description
net user List user accounts
net user [username] [password] /add Create a new user
net localgroup administrators Add user to admin group
[username] /add
6. Miscellaneous
Command Description
exit Close Command Prompt
help Display help for commands
title [text] Set the Command Prompt window title
color [code] Change text/background color