DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Khaled Md. Saifullah
Khaled Md. Saifullah

Posted on

Essential cmd commands for windows users

Check System Information

systeminfo
Enter fullscreen mode Exit fullscreen mode

Check Date

date
date /t
Enter fullscreen mode Exit fullscreen mode

Check Time

time
time /t
Enter fullscreen mode Exit fullscreen mode

Change Drive

c:
d:
e:
f:
Enter fullscreen mode Exit fullscreen mode

Check Current Directory

dir
Enter fullscreen mode Exit fullscreen mode

Clear Command Screen

cls
Enter fullscreen mode Exit fullscreen mode

Change Directory

cd [directory/folder name]
cd ../ --> One step back 
cd ../../ --> 2 step back
Enter fullscreen mode Exit fullscreen mode

Create Directory

mkdir [diretory name]
Enter fullscreen mode Exit fullscreen mode

Delete Directory

rmdir [directory name]
Enter fullscreen mode Exit fullscreen mode

Create an Empty File

type nul > [file name]
Enter fullscreen mode Exit fullscreen mode

Rename a File

re [file name] [new file name]
rename [file name] [new file name]
Enter fullscreen mode Exit fullscreen mode

Edit File Using Notepad

notepad [file name]
Enter fullscreen mode Exit fullscreen mode

Copy Text from a File to Another File

copy [first file name] [second file name]
Enter fullscreen mode Exit fullscreen mode

Delete a File

del [file name]
erase file name
Enter fullscreen mode Exit fullscreen mode

Move a File

move [file name] [new path name]
Enter fullscreen mode Exit fullscreen mode

Display Contents of a File

type [file name]
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Forem

πŸ— We built a 100% open source community software called Forem.

Β 
You can contribute to the codebase or host your own.