The Complete List of Command Prompt (CMD) Commands
As a computer user, it is essential to know how to use the Command Prompt or CMD command. The Command Prompt is a powerful tool that allows you to perform various tasks, such as managing files and folders, configuring network settings, troubleshooting system issues, and more, right from your Windows computer.
With the help of CMD commands, you can execute more complex tasks with ease, and in this article, we will provide you with a complete list of CMD commands. These CMD commands work for Windows 10, 8, 7, Vista, and XP, so they are useful for all users.
Without further ado, here is a comprehensive list of the Windows Command Prompt Commands that you can use:
1. ASSOC – Displays or modifies file extension associations.
2. ATTRIB – Displays or changes the attributes of files or directories.
3. BCDEDIT – Sets properties in Boot Configuration Data.
4. BREAK – Sets or clears extended CTRL+C checking.
5. CACLS – Displays or modifies access control lists (ACLs) of files.
6. CALL – Calls one batch program from another.
7. CD – Displays the name of or changes the current directory.
8. CHCP – Displays or sets the active code page number.
9. CHDIR – Displays the name of or changes the current directory.
10. CHKDSK – Checks a disk and displays a status report.
11. CHKNTFS – Displays or modifies the checking of disk at boot time.
12. CLS – Clears the screen.
13. CMD – Starts a new instance of the Command Prompt.
14. COLOR – Sets the default console foreground and background colors.
15. COMP – Compares the contents of two files or sets of files.
16. COMPACT – Compresses or uncompresses files.
17. CONVERT – Converts FAT volumes to NTFS.
18. COPY – Copies one or more files to another location.
19. DATE – Displays or sets the date.
20. DEL – Deletes one or more files.
21. DIR – Displays a list of files and subdirectories in a directory.
22. DISKCOMP – Compares the contents of two floppy disks.
23. DISKCOPY – Copies the contents of one floppy disk to another.
24. DISKPART – Disk Partition.
25. DOSKEY – Edits command lines, recalls Windows commands, and creates macros.
26. DRIVERQUERY – Displays a list of installed device drivers and their properties.
27. ECHO – Displays messages or turns command echoing on or off.
28. ENDLOCAL – Ends localisation of environment changes in a batch file.
29. ERASE – Deletes one or more files.
30. EXIT – Quits the CMD command interpreter.
31. FC – Compares two files or sets of files and displays the differences between them.
32. FIND – Finds one text string in another file.
33. FINDSTR – Searches for strings in files.
34. FOR – Runs a specified command for each item in a set of files.
35. FORMAT – Formats a disk for use with Windows.
36. FSUTIL – Displays or configures the file system properties.
37. FTP – Transfers files to and from a computer running an FTP server service.
38. FTYPE – Displays or modifies file types used in file extension associations.
39. GOTO – Redirects the Windows CMD command processing to a labeled line in a batch program.
40. GPRESULT – Displays the Result Group Policy information.
41. GRAFTABL – Enables Windows to display an extended character set in graphics mode.
42. HELP – Provides Help information for CMD commands.
43. ICACLS – Displays or modifies access control lists (ACLs) of files.
44. IF – Performs conditional processing in batch programs.
45. IPCONFIG – Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings.
46. LABEL – Creates, changes, or deletes the volume label of a disk.
47. MD – Creates a directory.
48. MKDIR – Creates a directory.
49. MODE – Configures system devices.
50. MORE – Displays output one screen at a time.
51. MOVE – Moves one or more files from one directory to another directory.
52. NET – Manages network resources.
53. NETSH – Configures network settings (IP, DNS, DHCP, and more).
54. OPENFILES – Displays files opened by remote users for a file share.
55. PATH – Displays or sets the search path for executable files.
56. PAUSE – Suspends the processing of Windows CMD batch files and waits for the user to press any key.
57. POPD – Restores the previous value of the current directory saved by the PUSHD command.
58. PRINT – Prints a text file.
59. PROMPT – Changes the Windows CMD command prompt.
60. PUSHD – Saves the current directory then changes it.
61. RD – Removes a directory.
62. RECOVER – Recovers readable information from a damaged disk.
63. REM – Records comments (remarks) in batch files or CONFIG.SYS.
64. REN – Renames a file or files.
65. RENAME – Renames a file or files.
66. REPLACE – Replaces files.
67. RMDIR – Removes a directory.
68. ROBOCOPY – Advanced way to copy files and directories.
69. ROUTE – Manipulates network routing tables.
70. RUNAS – Ensures Windows CMD commands are run with administrative privileges.
71. SC – Configures a Windows service.
72. SCHTASKS – Schedules commands and programs to run on a computer.
73. SET – Displays, sets, or removes Windows CMD command-line environment variables.
74. SETLOCAL – Begins localisation of environment changes in a batch file.
75. SHUTDOWN – Allows proper local or remote shutdown of the Windows OS.
76. SORT – Sorts input.
77. START – Starts a separate window to run a specified program or command.
78. SUBST – Associates a path with a drive letter.
79. SYSTEMINFO – Displays system configuration information.
80. TASKKILL – Ends one or more tasks or processes.
81. TASKLIST – Displays all currently running tasks and services.
82. TIME – Displays or sets the time.
83. TITLE – Sets the title for the CMD command prompt window.
84. TREE – Graphically displays the directory structure of a drive or path.
85. TYPE – Displays the contents of a text file.
86. VERIFY – Windows verifies that files are written correctly to a disk.
87. VOL – Displays a disk volume label and the serial number.
88. XCOPY – Copies files and directories with better security.
These CMD commands provide a powerful way to perform various tasks within the Windows command prompt. While some of these commands may be unfamiliar, they can be essential for troubleshooting and administering Windows systems.
In conclusion, mastering CMD commands can be very useful as it allows you to perform some of the most complex tasks in Windows with very little effort. Whether you are an advanced user or a beginner, having a list of Windows Command Prompt Commands can elevate your PC game and increase productivity.