The Complete List of Command Prompt (CMD) Commands

CMD

For most Windows users, the Windows operating system is all about graphical user interfaces—clicking icons, navigating folders, and using settings panels. But Windows comes with a powerful tool called the Command Prompt, or CMD. It offers far more control and efficiency for certain tasks. While it may seem outdated to some, CMD still plays an important role in system management, automation, and troubleshooting.

There are several tasks where using CMD is more effective than relying on the graphical interface. For example, when you want to quickly copy a large set of files from one directory to another, the robocopy command does it faster and with more options than the usual drag-and-drop method. Similarly, if you are trying to release and renew your IP address, running ipconfig /release and ipconfig /renew through CMD is much quicker than navigating through multiple network settings menus. CMD is also the go-to tool for running scripts, scheduling system tasks, managing network connections, and diagnosing system issues.

It is worth noting that CMD is often mistaken for DOS (Disk Operating System). While they share a similar syntax and many commands overlap, CMD is not DOS. CMD is a Windows-native command-line interpreter that supports many features that DOS never had, including 32-bit and 64-bit environments, batch scripting enhancements, and integration with modern Windows components. DOS commands form the foundation, but CMD builds on them to support today’s computing needs.

This article offers a complete list of CMD commands categorized by their purpose. Whether you are just getting started or looking for a solid reference, this guide will help you understand what CMD can do and how it remains relevant today. Check this list of essential CMD commands categorized by their purpose.

Read: Error 0x8096002A: How to Fix this error on Windows

Command Prompt Commands List

How to Access CMD:

There are two ways one can access CMD in Windows.

  1. Start Menu: Search for “Command Prompt” or “cmd” in the Windows Start Menu. Open CMD.
  2. Run Command: Press Windows + R, type cmd, and press Enter.

To effectively use CMD, you need to learn CMD commands. To give you all commands in one place, here’s the complete list of important Command Prompt commands. I have also grouped these commands into categories for easy reference:

1. File and Directory Management Commands

These commands help you navigate, manage, and manipulate files and directories in the Windows file system.

CommandDescription
dirLists all files and folders in the current directory.
cd or chdirChanges the current directory to the specified path.
md or mkdirCreates a new directory.
rd or rmdirDeletes a directory.
del or eraseDeletes one or more files.
copyCopies files from one location to another.
moveMoves or renames files or directories.
ren or renameRenames a file or directory.
xcopyCopies files and directories, including subdirectories.
robocopyAdvanced file copying tool with many options (better than xcopy).
attribChanges file attributes (read-only, hidden, etc.).
treeDisplays directory structure in a graphical tree format.
typeDisplays the contents of a text file.

2. System Information and Management Commands

These commands provide information about the system and allow you to manage various system resources.

CommandDescription
systeminfoDisplays detailed information about the system, including hardware and OS version.
tasklistLists all running processes on the system.
taskkillKills a process by its name or process ID.
getmacDisplays the MAC address of the system.
hostnameShows the name of the computer.
verDisplays the version of Windows.
timeDisplays or sets the system time.
dateDisplays or sets the system date.
shutdownShuts down, restarts, or logs off the computer.
wmicWindows Management Instrumentation Command to query system information.

3. Network and Internet Commands

Use these commands to diagnose and manage network connections and Internet settings.

CommandDescription
ipconfigDisplays IP configuration details.
pingChecks the network connection to a host or website.
tracertTraces the path packets take to a host.
netstatDisplays network connections, routing tables, and more.
nslookupQueries DNS records for a domain.
arpDisplays or modifies the ARP table (IP address to MAC address mapping).
routeDisplays or modifies the network routing table.
netshConfigures network settings such as IP addresses and firewall rules.
ftpTransfers files to/from a remote server using FTP.

4. Disk and File System Management Commands

These commands help you manage disk partitions, file systems, and disk-related tasks.

CommandDescription
diskpartOpens the Disk Partition tool to manage disks and partitions.
chkdskChecks and repairs disk errors.
formatFormats a disk for use with Windows.
volDisplays the disk volume label and serial number.
labelChanges or creates a volume label.
defragDefragments the specified disk.
compactCompresses files or displays information about file compression.

5. Security and Permissions Commands

These commands help manage security settings, permissions, and user accounts.

CommandDescription
cipherDisplays or alters the encryption of files and directories.
caclsDisplays or modifies access control lists (ACLs) for files.
icaclsDisplays or modifies file permissions and ownership.
net userManages user accounts on the system.
net localgroupManages local user groups.

6. System Utilities and Troubleshooting Commands

These commands allow you to troubleshoot system problems and access built-in Windows utilities.

CommandDescription
sfcScans system files and replaces corrupted or missing files.
dismManages Windows images and repairs the Windows installation.
msconfigOpens the System Configuration utility to manage startup settings.
eventvwrOpens the Event Viewer to view system logs and troubleshoot issues.
regeditOpens the Windows Registry Editor.
gpupdateUpdates Group Policy settings.
gpresultDisplays the resultant set of policies for a user or computer.
powercfgConfigures power settings and generates reports.

7. Windows Utilities Access Commands

These commands quickly open various built-in Windows tools and settings.

CommandDescription
controlOpens the Control Panel.
taskmgrOpens the Task Manager.
explorerOpens Windows File Explorer.
calcOpens the Calculator.
notepadOpens Notepad.
mstscOpens Remote Desktop Connection.
cmdOpens a new Command Prompt window.

8. Advanced Commands

Some commands are more advanced and are typically used by experienced users for in-depth system management.

CommandDescription
fsutilManages file system properties, such as sparse files, hard links, and quotas.
scManages services by querying, starting, stopping, and configuring Windows services.
bcdeditManages Boot Configuration Data (BCD) for startup options.
schtasksSchedules and manages tasks using Task Scheduler.
powercfgManages power settings, such as hibernation and energy reports.
driverqueryDisplays a list of all installed device drivers.

9. Shortcuts and Basic Commands

Here are some basic commands that can help you get around faster.

CommandDescription
clsClears the screen.
exitCloses the Command Prompt window.
echoDisplays messages or turns command echoing on/off.
pausePauses the execution of a batch file and shows the message “Press any key to continue…”.
promptChanges the appearance of the command prompt.

10. Batch File Commands

Batch files are scripts that execute multiple commands. These commands help in writing and running batch files.

CommandDescription
callCalls another batch file from within a batch file.
forExecutes a specified command for each file in a set of files.
ifPerforms conditional processing in batch programs.
gotoDirects the Command Prompt to jump to a labeled line in a batch script.
remAdds a comment in a batch file.

Read: Mac Terminal Commands Every Mac User Should Know

Conclusion

The Command Prompt is a powerful tool for managing and troubleshooting Windows systems. While modern graphical interfaces make everyday use simpler, CMD still offers flexibility and control, especially for advanced users and IT professionals. By learning these commands, you can unlock the full potential of your Windows machine and perform tasks with greater efficiency. Whether you are troubleshooting a network issue, managing files, or writing automation scripts, having a good grasp of CMD commands can significantly enhance your workflow.

Make sure to use these commands with care, especially when modifying system settings or files. Improper usage can cause issues in your system.

Techlomedia is supported by our readers. We put best buy links of different products and some of those links are affiliate links.If you purchase through these links, we may earn a commission at no extra cost to you. This helps support our website and content creation.

Share this article
Shareable URL
Prev Post

How to Show Seconds on the Clock on Your Mac

Next Post

Microsoft Edge Keyboard Shortcuts