Share
4
Here’s a summary of the most common Command Prompt (CMD) commands, organized by category:
1. File and Directory Commands
- cd: Change directory.
- dir: List the contents of a directory.
- copy: Copy files from one location to another.
- del: Delete files.
- move: Move files to a new location.
- mkdir: Create a new directory.
- rmdir: Delete a directory.
- ren: Rename files.
- attrib: Change file attributes (e.g., read-only, hidden).
2. System and Process Commands
- tasklist: Display a list of currently running processes.
- taskkill: Terminate a process by its PID.
- shutdown: Shut down or restart the computer.
- systeminfo: Display detailed system information.
- chkdsk: Check and repair disk errors.
- sfc: System File Checker tool to scan and restore system files.
- ipconfig: Display network configuration (e.g., IP address).
- ping: Test network connection to a specific host.
3. Network and Internet Commands
- netstat: Display active network connections.
- tracert: Trace the route packets take to a network host.
- nslookup: Query DNS records for a domain.
- arp: Display or modify the ARP (Address Resolution Protocol) cache.
- netsh: Configure and display network settings.
- ftp: Transfer files via File Transfer Protocol.
4. Disk and Volume Commands
- diskpart: Manage disk partitions.
- format: Format a drive.
- vol: Display the volume label and serial number of a disk.
- label: Create or change the label of a volume.
- mountvol: Create, delete, or list a volume mount point.
5. User and Permission Commands
- net user: Manage user accounts on a computer.
- net localgroup: Manage local user groups.
- cacls: Display or modify file access control lists (deprecated, use icacls).
- icacls: Change or display the access control list (ACL) of a file.
6. System Management
- sc: Manage services (start, stop, or query a service).
- wmic: Run Windows Management Instrumentation (WMI) commands.
- schtasks: Schedule commands and programs to run periodically.
- powercfg: Configure power settings, like hibernation.
- bcdedit: Manage boot configuration data.
7. Environment and Configuration
- set: Display, set, or remove environment variables.
- echo: Display messages or turn on/off command echoing.
- path: Set or display the search path for executable files.
- title: Set the Command Prompt window title.
8. Advanced Commands
- reg: Manage the Windows registry.
- fc: Compare two files and display the differences.
- assoc: View or change file associations.
- cls: Clear the Command Prompt window.
- exit: Close the Command Prompt window.
This list provides an overview of essential CMD commands for basic to advanced use. Each command has specific options and parameters that can be explored further by typing the command followed by /? in the Command Prompt for detailed help.