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:
ping google.comChecks if internet is working.
ipconfigShows network details.
✔ Checking system / network info
Example:
systeminfoShows OS, RAM, and system details.
✔ Working on Windows Servers
CMD is always available on Windows Server.
Example:
tasklistShows 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
dir📌 Move between folders
cd foldername
cd ..📌 Create a folder
mkdir test📌 Delete a file
del file.txt📌 Clear screen
cls5. CMD Scripting Basics (Batch Files)
Batch scripts use
.bat extension.Example:
echo Hello World
pauseRun it:
hello.bat6. 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
.jpg?table=block&id=29d76b1d-f1a8-8072-a9bf-cc78d1c7d881&cache=v2)
