This is a draft cheat sheet. It is a work in progress and is not finished yet.
Files & Folders Management
copy <options> <src> <dest> |
Copies files to another location. |
cd <directory> |
Changes directory. |
del or erase <options> <files> |
Deletes files. |
dir <path> <options> |
Displays files and folders in the current directory. |
edit <filename> |
Starts the file editor. |
expand <source> <destination> |
Decompresses compressed files. |
fc <options> <file 1> <file 2> |
Compares files and shows the differences between them. |
find <string> <file> |
Finds a text string in a file. |
md or makedir <path> |
Creates a new folder. |
move <options> <src> <dest> |
Moves files from one folder to another. |
openfiles |
Manages opened local or network files. |
print <filename> <path> |
Prints out the contents of a text file. |
rd or rmdir <path> |
Deletes a folder. |
ren or rename <path><oldname> <newname> |
Renames a file or folder. |
replace <oldpath> <newpath> |
Replaces files in one directory with files of the same name in another directory (overwrites). |
robocopy <src> <dest> <file> <options> |
Uses an advanced tool to copy files and directories. |
tree <options> <path> |
Displays the directory structure of a disk or folder. |
type <file path> |
Displays the contents of text files. |
xcopy <src> <dest> <options> |
Copies files and directory trees, often used for more complex copy operations. |
Command Line Setup
cls |
Clears the screen. |
cmd <options> <command> |
Opens another command prompt window. |
color <background><font> |
Sets the text and background color in the command prompt. |
exit <options> |
Exits the command prompt. |
help <command> |
Launches the CMD help interface. |
prompt <string/variables> |
Changes the command line prompt. |
title <string> |
Assigns a title to the current command prompt session. |
Disks Management
chkdisk <volume> <options> |
Checks disk integrity and shows statistics. |
chkntfs <volume> |
Displays or changes execution of disk check at boot. |
compact <options> <file> |
Displays and changes the compression of files in NTFS partitions. |
convert <volume>: /<type> |
Converts FAT disk volume to NTFS. |
defrag <volume> <options> |
Starts disk defragmentation. |
diskpart |
Displays and adjusts disk partition properties. |
format <type> |
Formats a disk or partition. |
fsutil <subcommand> |
Displays and configures file system properties. |
label /mp <volume> <label> |
Creates, changes, or deletes a disk volume label. |
recover <drive>:<path><filename> |
Recovers data from a damaged or bad disk. |
vol <drive> |
Displays the volume label and serial number of the disk. |
|
|
Network Management
arp <option> <address> |
Displays a table with IP addresses converted into physical (MAC) addresses. |
getmac <options> |
Displays the MAC address of the network adapter. |
ipconfig <options> |
Shows information about network interfaces and IP configuration. |
netsh <options> |
nslookup <host> <command> <options> – Finds the IP address for a resource name. |
Starts the network settings control program. |
ping <options> <host> |
Sends ICMP requests to the target host to check its availability. |
route <options> <command> <value> |
Displays network route tables. |
tftp |
Starts the TFTP client in the command prompt. |
tracert <options> <dest> |
Finds the network path for packets traveling to a destination. |
System Information
date <options> |
Outputs or sets the current date. |
driverquery <options> |
Displays the current state and properties of device drivers. |
gpresult |
Displays the currently applied group policies (RSoP). |
gpupdate |
Updates group policies. |
hostname |
Displays the name of the computer. |
systeminfo <options> |
Shows configuration information about your computer. |
time <options> |
Displays or sets the system time. |
ver |
Allows you to view the Windows version. |
Applications & Processes
reg |
Starts the registry editor. |
runas /user:<username> "<command>" |
Launches a task as another user. |
schtasks /<subcommand> |
Executes a command or starts a scheduled application (Task Scheduler). |
shutdown <options> |
Shuts down or reboots your computer. |
taskkill <options> <task/process> |
Stops or halts a task. |
tasklist <options> |
Lists the tasks being performed on your computer. |
|