Η Command Prompt (Command Prompt or CMD) is one of the most useful Windows tools that many users ignore. Think of it as a "magic menu" that allows you to issue commands directly to your computer, without having to click through menus and windows. Through CMD you can quickly perform tasks that would normally take you much longer through regular Windows windows.
In our guide today, we will introduce you to the 60 most useful CMD commands that every Windows user should know. These commands will help you manage your files, check your internet connection, solve problems, and do many other useful things with your computer.
🖥️ The 60 Best CMD Commands for Windows
| # | Mandate | What Does It Do? |
|---|---|---|
| 1 | ipconfig | Shows information about your internet connection and your IP address |
| 2 | ping | Checks if you can connect to a website or another computer |
| 3 | dir | Shows all files and folders present in a folder |
| 4 | cd | Moves you from one folder to another |
| 5 | chkdsk | Checks your hard drive for problems and fixes them |
| 6 | shutdown | Shuts down, restarts, or puts the computer to sleep |
| 7 | sfc / scannow | Scans and repairs corrupted system files |
| 8 | tasklist | Shows all currently running programs |
| 9 | taskkill | Closes a program that is stuck or unresponsive |
| 10 | netstat | Shows which internet connections are active on your computer |
| 11 | tracert | It shows the path data takes to reach a website. |
| 12 | nslookup | Finds information about a website or IP address |
| 13 | class | Clears the command line screen |
| 14 | exit | Closes the command prompt. |
| 15 | copy | Copies files from one folder to another |
| 16 | move | Moves files from one folder to another |
| 17 | of the | Deletes files permanently |
| 18 | mkdir | Creates a new folder |
| 19 | rmdir | Deletes an empty folder |
| 20 | diskpart | Tool to partition or manage your disks |
| 21 | format | Erases all data from a disk and prepares it for use |
| 22 | threw out | Displays messages on the screen or saves text to files |
| 23 | set | Shows or changes system settings |
| 24 | tree | Shows the folder structure in tree format |
| 25 | attrib | Changes file properties (e.g. hidden, read-only) |
| 26 | ren | Renames files or folders |
| 27 | fc | Compares two files and shows their differences |
| 28 | bootrec | Fixes Windows startup problems |
| 29 | sc | Manages the services running on Windows |
| 30 | gpupdate | Updates security policies in network environments |
| 31 | hostname | Shows your computer name |
| 32 | powercfg | Manages power and battery settings |
| 33 | getmac | Shows the unique ID of your network card |
| 34 | systeminfo | Displays detailed information about your computer |
| 35 | taskmgr | Opens Task Manager |
| 36 | mstsc | Opens the tool for remotely connecting to another computer |
| 37 | Assoc | Shows or changes which program opens each file type |
| 38 | PathPing | Combining ping and tracert for detailed network testing |
| 39 | cipher | Encrypts or decrypts files for protection |
| 40 | color | Changes the colors of the command line |
| 41 | see | Shows which version of Windows you are using |
| 42 | fsutil | Advanced tool for file system management |
| 43 | GPResult | Shows which security policies are applied to the computer |
| 44 | label | Names or renames a disk |
| 45 | vol | Shows information about a disk (name, serial number) |
| 46 | schtasks | Creates and manages scheduled tasks |
| 47 | shutdown / s | Shuts down the computer immediately |
| 48 | whoami | Shows which account you are logged in with |
| 49 | WMIC | Advanced tool for system management |
| 50 | tzutil | Changes the computer's time zone |
| 51 | net user | Manages user accounts |
| 52 | arp | Shows information about devices on the local network |
| 53 | road. | Manages network routes |
| 54 | msg | Sends messages to other network users |
| 55 | findstr | Finds specific text within files |
| 56 | team | Shows or changes the system time |
| 57 | data | Shows or changes the system date |
| 58 | robocopy | Advanced file copy tool with many options |
| 59 | Dism | System repair and management tool |
| 60 | slmgr | Manages Windows activation |
Important Notes
- SHUTDOWN: Use with caution (e.g. shutdown /s /t 0).
- DEL / RMDIR: The deletion is permanent.
- DISKPART, FORMAT, BOOTREC: Advanced tools – only if you know what you're doing.
- WMIC: In newer Windows it is deprecated.
- TASKKILL: taskkill /F /IM process.exe → forced shutdown.
💡 Conclusion: The Command Prompt (CMD) is like a "toolbox" hidden inside your computer, waiting for you to discover it. With these 60 commands, you can solve problems quickly, manage your files
RELATED TOPICS
Loading comments...