Here are 50 of the most useful DOS commands along with their functions for both Windows 10 and Windows 11:
- dir: Lists the files and directories in the current directory.
- cd: Changes the current directory.
- md (or mkdir): Creates a new directory.
- rd (or rmdir): Removes an empty directory.
- del (or erase): Deletes one or more files.
- copy: Copies one or more files to another location.
- xcopy: Copies files and directories, including subdirectories.
- move: Moves one or more files to another location.
- ren (or rename): Renames a file or directory.
- cls: Clears the command prompt screen.
- type: Displays the contents of a text file.
- attrib: Displays or changes file attributes.
- chkdsk: Checks a disk and displays a status report.
- diskpart: Manages disk partitions.
- format: Formats a disk for use with Windows.
- sfc /scannow: Scans and repairs protected system files.
- tasklist: Displays a list of currently running processes.
- taskkill: Kills a running process.
- shutdown: Shuts down or restarts the computer.
- netstat: Displays network statistics and current TCP/IP connections.
- ping: Tests connectivity to another networked device.
- ipconfig: Displays network configuration information.
- netsh: Configures network settings.
- getmac: Displays the MAC address for network adapters.
- nslookup: Queries DNS servers for domain name or IP address information.
- tracert: Traces the route packets take to reach a network host.
- route: Displays or modifies the routing table.
- net use: Connects, disconnects, and displays information about network connections.
- net share: Displays and manages shared resources.
- net user: Manages user accounts.
- net localgroup: Manages local group accounts.
- net start: Starts a network service.
- net stop: Stops a network service.
- systeminfo: Displays detailed system information.
- powercfg: Configures power settings.
- schtasks: Schedules tasks to run automatically.
- cipher: Manages file encryption and decryption.
- fc: Compares two files and displays the differences.
- tree: Displays a graphical representation of the directory structure.
- find: Searches for text within files.
- findstr: Searches for strings in files.
- reg: Manages the Windows registry.
- assoc: Displays or changes file type associations.
- ftype: Displays or modifies file types used in file type associations.
- charmap: Starts the Character Map utility.
- gpupdate: Updates Group Policy settings.
- gpresult: Displays the Resultant Set of Policy information.
- msconfig: Opens the System Configuration utility.
- dxdiag: Opens the DirectX Diagnostic Tool.
- path: Displays or sets a search path for executable files.
These commands provide a wide range of functions, from file management to network diagnostics, system configuration, and more, making them highly useful for managing and troubleshooting Windows systems.