A to Z List of All Windows CMD Commands

List of Windows CMD Commands:

CMD is a command-line interpreter of operating systems created by Microsoft Corporation. Here the List of Windows CMD Commands is given below:

1. CLS: It clears the screen.
Syntax:

cls↩

2. CD: It displays the name of or changes the current directory.
Syntax:

cd directory or sub-directory-name↩

3. DIR: It displays a list of files and sub-directories in a directory.
Syntax:

dir↩

4. MD: It creates a directory.
Syntax:

md new directory-name↩

5. RD: It removes (deletes) a directory.
Syntax:

rd directoy-name↩

6. COPY: It copies one or more files to another location.
Syntax:

copy file-name path of destination-directory↩

7. XCOPY: It copies directory and sub-directory.
Syntax:

xcopy source-directory-name path of destination-directory-name↩

8. DEL: It deletes one or more files.
Syntax:

del file-name↩

9. DATE: It displays or sets the date.
Syntax:

date↩

10. TYPE: It displays the contents of text files.
Syntax:

type text-filename↩

11. WIN: It is used to Start Windows.

12. TIME: It displays the current time.
Syntax:

time↩

13. DELTREE: It deletes a directory and all the sub-directories and files in it.
Syntax:

deltree /Y drive1-path drive2-path↩

14. MOVE: It renames files and directories.
Syntax:

move source-directory-name path of renaming directory↩

15. ATTRIB: It displays or changes file attributes.
Syntax:

attrib drive: path-of-filename /s /d /l↩

16. CHOICE: It waits for the user to choose one of a set of choices.
Syntax:

choice /C YN /M "Message1, Message2"

17. FC: It compares two files or sets of files and displays the differences between them.
Syntax:

fc file-name1 file-name2↩

18. CHKDSK: It checks a disk and displays a status report. At first, right-click on Command Prompt and select Run as Administrator.
Syntax:

chkdsk↩

19. DISKCOPY: It copies the contents of one floppy disk to another.
Syntax:

diskcopy [drive1: [drive2:]] [/v]↩

20. FDISK: It configures a hard disk for use with MS-DOS.
Syntax:

fdisk /status↩

21. SCANDISK: It scans your disk for errors and removes them. At first, right-click on Command Prompt and select Run as Administrator.
Syntax:

sfc/scannow↩

22. FIND: It searches for a text string in a file or files.
Syntax:

find "text" path of file-name↩

23. FORMAT: It formats a disk for use with MS-DOS.
Syntax:

format drive-name: /q /fs:file-system↩

24. START: It runs a Windows program or an MS-DOS program.
Syntax:

start↩

25. LABEL: It creates, changes, or deletes the volume label of a disk.
Syntax:

label drive: volume-label↩

26. SYS: It copies MS-DOS system files and command interpreter to a disk you specify.
Syntax:

SYS source-drive:  destination-drive:↩

27. MEM: It displays the amount of used and free memory in your system.
Syntax:

 mem /f↩

28. SORT: It sorts input and writes results to the screen, a file, or another device
Syntax:

sort file-name↩

29. SHUTDOWN: It shutdown or reboots your computer system.
Syntax:

shutdown /s↩

or
shutdown /r↩

30. EXIT: It quits the command interpreter program.
Syntax:

exit↩