Windows CMD Commands Cheat Sheet PDF
Windows CMD Commands Cheat Sheet PDF
D I P T
date <options> Show/change current date. ipconfig <options> Show TCP/IP configuration. path <location> Show/add to PATH. takeown <options> <file> Change file ownership to
administrator.
defrag <volume> <options> Defragment disk. ping <options> <host> Check connection with
L specified host taskkill <options> Terminate running
A del <options> <files> Delete file(s). <task/process> task/process.
powercfg <options> Show/change power plan.
dir <path> <options> List directory contents. label <options> Show/change/remove <arguments> tasklist <options> Show running tasks.
arp <option> <address> Show/change ARP cache.
volume label.
assoc .<extension>=<filetype> Show/change file extension doskey <options> Show command prompt <string/variables> Change CMD prompt. telnet <command> <options> Run Telnet client.
association. history/create macros.
time <options> Show/change current time.
driverquery <options> Show installed device drivers. M
attrib <+/-> <attribute> Show/change file attributes.
R timeout /t <seconds> Pause CMD.
makecab <options> <src> Create .cab file.
title <string> Change CMD title.
B E <dest> rd <path> Remove directory.
rmdir <path>
tracert <options> <dest> Trace networking path.
md <path> Create directory.
bcdboot <path> Copy BCD files. echo <message> Print message. mkdir <path> ren <path><old name> <new Rename file(s)/directory(/ies).
tree <options> <path> Show contents in tree-like
name>
erase <options> <files> Delete file(s). structure.
mklink <options> <link> Create hard/symbolic link. rename <path><old name>
<target> <new name>
C exit <options> Exit CMD. type <file path> Show file contents.
more <file> Show output as pages. robocopy <src> <dest> <file> Robust copy.
tzutil <options> Show/change time zone.
<command> | more <options>
cd <directory> Change current directory.
F
mountvol <path> <volume> Show/make/remove volume route <options> <command> Show/change routing table.
chkdsk <volume> <options> Scan file system for errors. mount point. <value>
fc <options> <file 1> <file 2> Compare files.
V
choice <options> <choices> Choice prompt. move <options> <src> <dest> Move/rename files.
find <string> <file> Search file for string. ver Show OS version.
cipher <option> Show/change encryption. msiexec <options> <package Run Windows installer. S
<file/directory> findstr <string> <file> Search file for string (scripts). path> vol <drive> Show disk volume and label.
<command> | clip Copy command/file contents. ftype <file type>=<open Show/change extension schtasks /<subcommand> Schedule tasks.
msinfo32 <options> Run System Information.
clip < <filename> command> association program.
set <variable>=<value> Show/set/remove ENV
mstc <options> <file> Run Remote Desktop W
cls Clear screen. variables.
Connection.
G
cmd <options> <command> Start new CMD. sfc <options> <file(s)/directory Check protected file version. where <options> <location> Search for file location.
(/ies)> <file>
color <background><font> Change background and font getmac <options> Show MAC address. N
color. shutdown <options> Shutdown/reboot system. whoami <options> Show current user
information.
comp <file 1> <file 2> Compare file contents. net <subcommand> <options> Network management tools. sort <file> Sort data.
H
<options>
netstat <options> Show network statistics. start <title> <options> Start new CMD.
compact <options> <file> Compress files and folders.
X
help <command> Show help for command.
nslookup <host> <command> DNS querying. systeminfo <options> Show information about
copy <options> <src> <dest> Copy file(s). hostname Show hostname. <options> system. xcopy <src> <dest> <options> Copy file(s)/directory(/ies).