Back to DevOps Series
Command Prompt (cmd.exe) :

Command Prompt (cmd.exe) :

Command Prompt (cmd.exe) is Windows’ basic command-line tool.
You use it to run simple commands like:
  • checking files
  • navigating folders
  • network tests
  • running batch scripts
It is older and simpler than PowerShell.

2. Why DevOps Engineers Should Know CMD

Even though CMD is old, it is still useful on Windows.
Basic troubleshooting
Example:
Loading...
Checks if internet is working.
Loading...
Shows network details.

Checking system / network info
Example:
Loading...
Shows OS, RAM, and system details.

Working on Windows Servers
CMD is always available on Windows Server.
Example:
Loading...
Shows running programs.

Used in automation tools
Some Windows automation tools use CMD commands in the background.

Remember:
👉 CMD is simple, always available, and still useful.

3. Basic Commands

📌 Show files

Loading...

📌 Move between folders

Loading...

📌 Create a folder

Loading...

📌 Delete a file

Loading...

📌 Clear screen

Loading...

5. CMD Scripting Basics (Batch Files)

Batch scripts use .bat extension.
Example:
Loading...
Run it:
Loading...

6. CMD Limitations (Important Point)

❌ No advanced automation
❌ No objects (text only)
❌ Weak scripting
❌ Not suitable for modern DevOps
This is why we use PowerShell and WSL/Linux for serious work.

7. When to Use CMD?

Use CMD when you need:
  • quick checks
  • simple commands
  • old scripts
  • basic troubleshooting