Show Menu
Cheatography

Windows CMD Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Directory Operation

md or mkdir
md folder­_name
Creates a directory
del
del file_name
Delete files in subdir­ectory
rd or rmdir
rd folder­_name
Delete folder
rd or rmdir
rd /s folder­_name
Delete not empty folder
rename or ren
ren old_name new_name
rename files
dir
dir a*
Display folders or files start with a
TREE
tree
Graphi­cally display directory structure
COPY
copy src_file des_file
copy file
XCOPY
xcopy src_file des_file /e /i
copy folder include empty folder
Copy con
copy con filena­me.txt
create file and edit
del /s
: delete specific file from all subdir­ect­ories
rd /s
: delete a folder and everything in it
tree /f
: display include file
xcopy src_file des_file /e /i
: /e is for copy even empty folder
xcopy src_file des_file /s /i
: /s is for copy only not empty folder

System

VER
ver
display windows version
TIME
time
display and change time
DATE
date
display and change date

About

I will add more.