Skip to content

Instantly share code, notes, and snippets.

@Monmoy042
Last active December 24, 2021 13:53
Show Gist options
  • Save Monmoy042/a341ee40755634d067dabe4e160f68dd to your computer and use it in GitHub Desktop.
Save Monmoy042/a341ee40755634d067dabe4e160f68dd to your computer and use it in GitHub Desktop.
Essential Windows cmd commands.

Check System Information

systeminfo

Check Date

date
date /t

Check Time

time
time /t

Change Drive

c:
d:
e:
f:

Check Current Directory

dir

Clear Command Screen

cls

Change Directory

cd [directory/folder name]
cd ../ --> One step back 
cd ../../ --> 2 step back

Create Directory

mkdir [diretory name]

Delete Directory

rmdir [directory name]

Create an Empty File

type nul > [file name]

Rename a File

re [file name] [new file name]
rename [file name] [new file name]

Edit File Using Notepad

notepad [file name]

Copy Text from a File to Another File

copy [first file name] [second file name]

Delete a File

del [file name]
erase file name

Move a File

move [file name] [new path name]

Display Contents of a File

type [file name]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment