Most Useful & Essential CMD Commands in โ Windows
Master the most powerful ๐ช Windows Command Prompt (CMD) commands used by software engineers, system administrators, and cybersecurity professionals daily.
(c) Microsoft Corporation. All rights reserved.
Volume in drive C is WINDOWS
Directory of C:\Users\Student
08/03/2026 12:00 PM <DIR> Desktop
08/03/2026 12:00 PM <DIR> Documents
08/03/2026 12:00 PM 1,024 index.html
1 File(s) 1,024 bytes
2 Dir(s) 45,120,000,000 bytes free1. View Directory ('dir')
Basic NavigationActive folder ke saare files aur sub-folders ki list display karta hai.
๐ก Note: Use 'dir /p' to pause screen after each page, or 'dir /w' for wide layout format.
2. Change Directory ('cd')
Basic NavigationFolder ke andar jaane ya 'cd ..' karke ek step peeche aane ke liye use hota hai.
๐ก Note: Type 'cd \' to jump straight back to the root partition C:\.
3. Create a New Directory ('mkdir')
File & DirectoryNaya folder banane ke liye `mkdir FolderName` command ka use karein.
๐ก Note: Remember the Zero-Space Rule: avoid spaces in folder names, use hyphens instead.
4. Rename a File ('ren')
File & DirectoryKisi bhi file ya folder ka naam badalne ke liye `ren old.txt new.txt` chalayein.
๐ก Note: You can also rename file extensions using wildcards like 'ren *.txt *.doc'.
5. Delete a File ('del')
File & DirectoryFiles ko permanently delete karta hai. Recycle Bin me nahi jaata!
๐ก Note: Use 'del /f' to force delete read-only files, or 'del /q' for quiet mode.
6. Clear CMD Screen ('cls')
Terminal UtilityCommand Prompt screen par pichhla saara text saaf kar deta hai.
๐ก Note: Keeps your active directory path intact while refreshing screen clarity.
7. Exit CMD ('exit')
Terminal UtilityCommand Prompt window ko instantly close kar deta hai.
๐ก Note: Closes the CMD.EXE process immediately.
8. CMD Built-in Help ('help')
Terminal UtilityCMD me available saari commands ki list aur syntax manual dikhata hai.
๐ก Note: Type 'help [command]' to read syntax parameters for any utility.
9. View System Time ('time')
System InformationSystem ka current time print karta hai aur new time set karne ka option deta hai.
๐ก Note: Use 'time /t' to display time without being prompted to change it.
10. Copy File ('copy')
File & DirectoryFile ki duplicate copy doosri jagah ya doosre naam se save karta hai.
๐ก Note: To copy entire directory trees with subfolders, use 'xcopy' or 'robocopy'.
11. System File Checker ('sfc /scannow')
System DiagnosticWindows ki corrupt system files ko scan karke automatically repair karta hai.
๐ก Note: Requires Administrator privileges (Run CMD as Administrator).
12. Check Disk Errors ('chkdsk')
Disk UtilityHard drive aur SSD ke sectors me kisi bhi file system error ko check karta hai.
๐ก Note: Use '/f' to fix errors and '/r' to recover readable information from bad sectors.
13. View Running Processes ('tasklist')
Process ManagerBackground aur foreground me chalne waale saare programs aur PIDs ki list dikhata hai.
๐ก Note: Use 'tasklist /v' for verbose output showing memory consumption and window titles.
14. Terminate Process ('taskkill')
Process ManagerHangs hone waale apps ko unke PID ya naam se turant band karta hai.
๐ก Note: Use '/F' to force termination and '/IM chrome.exe' to kill by application name.
15. System Shutdown Controls ('shutdown')
Power UtilityPC ko timer ke saath shutdown (`/s`) ya restart (`/r`) karne ke liye chalayein.
๐ก Note: Type 'shutdown /a' to abort a scheduled shutdown.
16. Network IP Configuration ('ipconfig')
Network DiagnosticAapke computer ka IP address dikhata hai aur 'ipconfig /flushdns' se cache saaf karta hai.
๐ก Note: Use 'ipconfig /all' to view detailed network adapter info including MAC addresses.
17. Test Network Connection ('ping')
Network DiagnosticServer se connection status aur network speed/latency test karne ke liye use karein.
๐ก Note: Use 'ping -t google.com' for continuous ping testing (press Ctrl+C to cancel).
18. Active Network Connections ('netstat')
Network SecurityActive internet connections aur listening open ports ki list check karne ke liye.
๐ก Note: Use 'netstat -ano' to show process IDs (PIDs) associated with active connections.
19. Trace Route Hops ('tracert')
Network DiagnosticPackets ke destination tak pahunchne ke saare routers aur hops ka rasta trace karta hai.
๐ก Note: Ideal for isolating exactly which router or ISP link is causing network drops.
20. View Saved Wi-Fi Passwords ('netsh')
Wi-Fi SecuritySystem me pehle se saved Wi-Fi networks ke passwords cleartext me dikhata hai.
๐ก Note: Use 'key=clear' to unhide the plain text security key under Key Content.
21. Manage User Accounts ('net user')
System AdminSystem user accounts dikhata hai aur new users ya passwords manage karta hai.
๐ก Note: Type 'net user [Username] *' to change account password safely without echoing text.
22. Save CMD Output to File ('>')
Scripting & LogsTerminal ka output screen par dikhane ke bajaye `.txt` file me save karta hai.
๐ก Note: Use '>' to overwrite a file, and '>>' to append lines to the bottom of an existing file.
23. File Attributes & Locks ('attrib')
Security & LocksFile ko Hide (`+h`) ya Read-Only (`+r`) karne ke liye use hota hai.
๐ก Note: Type 'attrib -h -r secret.txt' to unhide and unlock the file.
24. Graphical Directory Tree ('tree')
Visual ExplorationFolders aur sub-folders ka clean tree diagram print karta hai.
๐ก Note: Use 'tree /f' to include files inside every folder in the graphical diagram.
25. System Information Overview ('systeminfo')
Hardware & OSPC ki poori hardware specs, OS version aur BIOS details ek jagah print karta hai.
๐ก Note: Great for checking total RAM size, virtual machine status, and system boot time.
Ready to Master Windows CLI Architecture?
Continue learning terminal operations, drive letter swapping, wildcards, and batch scripting with Nextsem Academy free interactive lessons.
