25 Essential CMD Commands Every Windows User Should Know (2026)

Master the Windows Command Prompt with these 25 essential CMD commands for file management, networking, and system troubleshooting. Perfect for beginners and power users.

antoniopartha

The Command Prompt (CMD) might look intimidating with its “black box” interface, but it remains one of the most powerful tools in Windows. Whether you are troubleshooting network issues or automating file tasks, knowing the right commands can save you hours of manual work. In this guide, we break down the must-know commands into easy-to-digest categories.

Before you can fix your PC, you need to know how to move around.

  1. cd (Change Directory): The most used command. Use cd Documents to enter a folder or cd .. to go back one level.
  2. dir (Directory): Lists all files and folders in your current location.
  3. Pro Tip: Use dir /s to see every file in all subdirectories.
  4. cls (Clear Screen): Clears the entire terminal window when it gets too cluttered.
  5. exit: Simply closes the Command Prompt window.

Networking & Internet Troubleshooting

This is where CMD shines for the average user. If your internet is acting up, these are your “first responders.”

  1. ipconfig: Displays your IP address and network details.
  2. ipconfig /flushdns: Clears your DNS cache—the go-to fix when a specific website won’t load.
  3. ping: Checks if a website or server is reachable.
  4. Example: ping google.com checks your connection to Google’s servers.
  5. tracert (Trace Route): Shows the “path” your data takes to reach a website. Great for seeing exactly where a connection is failing.
  6. netstat: Shows all active internet connections on your PC. Use netstat -an for a detailed list of ports.

File & System Management

Automate your file tasks or fix broken system files without a GUI.

  1. mkdir (Make Directory): Creates a new folder instantly.
  2. del (Delete): Deletes a specific file. (Be careful: there is no “Recycle Bin” here!)
  3. sfc /scannow: The “System File Checker.” It scans and repairs corrupted Windows system files. Requires Administrator privileges.
  4. chkdsk: Checks your hard drive for errors and bad sectors.
  5. tasklist & taskkill: * tasklist shows every running app (like Task Manager).
  6. taskkill /IM appname.exe /F force-closes a frozen program.

Developer & Power User "Cheat Codes"

  1. systeminfo: Gives you a massive list of your PC’s specs, including BIOS version, RAM, and the date Windows was installed.
  2. powercfg /batteryreport: Generates a detailed HTML report of your laptop’s battery health and history.
  3. cipher: Permanently wipes deleted data so it can’t be recovered—or encrypts new folders.
  4. clip: Want to save a command’s output? Add | clip at the end (e.g., ipconfig | clip) to copy it straight to your clipboard.

Using these commands to prep a new PC? See our Windows 10 Installation Guide.

Share This Article

What's Trending at WiTechPedia

Stay Connected with @WiTechPedia

Popular Topic to learn

Leave a Comment