CMD Commands – List of 100 Prompts for Daily Use

cmd commands


Table of Contents

💻 100 CMD Commands for Daily Use in Windows (2025 Complete Guide)

This article is structured and SEO-optimized for a tech website that covers Windows, computers, and software topics — perfect for audiences in India and globally.


🧠 Introduction

The Command Prompt (CMD) in Windows is one of the most powerful yet underrated tools. It allows users to perform tasks quickly, troubleshoot system issues, manage files, check network connections, and much more — all using simple text-based commands.

Whether you’re a beginner, a tech enthusiast, or a system administrator, learning CMD commands can save time and make you more efficient.

In this article, we’ll cover 100 CMD commands for daily use, divided into categories like system info, network tools, file operations, security, and troubleshooting.


⚙️ 1. Basic CMD Commands for Beginners

These commands help you navigate and manage files or folders from the command line.

CommandDescription
dirLists files and folders in the current directory
cdChanges the directory (folder)
cd..Moves one step back in the directory path
clsClears the Command Prompt screen
exitCloses the Command Prompt window
echoDisplays messages or turns command echoing on/off
dateDisplays or sets the system date
timeDisplays or sets the system time
verShows the Windows version
helpDisplays a list of available commands

These are the foundation commands for getting started in CMD.


📂 2. File and Folder Management Commands

CMD can help you manage files quickly without using File Explorer.

CommandDescription
mkdir or mdCreates a new folder
rmdirRemoves a directory
delDeletes one or more files
copyCopies files from one location to another
xcopyCopies entire folders including subfolders
moveMoves files or folders to another location
renameRenames a file or folder
attribChanges file attributes (hidden, read-only, etc.)
treeDisplays directory structure in tree format
fcCompares two text files and shows differences

Example:

xcopy D:\Projects C:\Backup\Projects /E

Copies all folders and files from one drive to another, including subdirectories.


🧩 3. System Information and Diagnostics Commands

Use these commands to check your system’s details, performance, and health.

CommandDescription
systeminfoDisplays detailed system configuration
hostnameShows the computer’s network name
wmic cpu get nameDisplays your CPU model
wmic bios get serialnumberDisplays BIOS serial number
tasklistLists all running processes
taskkill /im processname.exe /fForces a program to close
driverqueryLists all installed drivers
sfc /scannowScans and repairs corrupted system files
chkdskChecks disk for errors
powercfg /energyGenerates a detailed power efficiency report

Example:

systeminfo | find "OS"

Shows only the Windows OS version.


🌐 4. Network and Internet Commands

CMD is powerful for checking and fixing network problems.

CommandDescription
ping website.comChecks network connection to a website or IP
ipconfigDisplays IP address and network details
ipconfig /allShows full IP configuration details
ipconfig /releaseReleases current IP address
ipconfig /renewRenews IP address from DHCP
netstatDisplays active connections and ports
tracert website.comTraces route taken by packets to a destination
nslookup website.comChecks DNS details for a website
getmacDisplays MAC address of your system
arp -aShows ARP cache table of connected devices

Example:

ping google.com

Used to test if your internet or network connection is working.


🔐 5. User Account and Security Commands

Useful for managing users and protecting your system.

CommandDescription
net userLists all user accounts
net user username password /addCreates a new user
net user username /deleteDeletes a user account
net localgroup administrators username /addAdds a user to the admin group
net accountsDisplays password and logon settings
runas /user:administrator cmdRuns Command Prompt as administrator
cipher /w:C:Securely wipes deleted files from a drive
gpupdate /forceForces Group Policy update
secedit /analyzeAnalyzes system security settings
net sessionDisplays active network sessions

Example:

net user NewAdmin P@ssword123 /add

Creates a new user account with admin rights.


🧱 6. Disk Management and Storage Commands

Control and monitor your drives using CMD.

CommandDescription
diskpartOpens disk management tool
list diskLists all disks connected
list volumeDisplays all partitions and volumes
select disk 0Selects a specific disk
cleanWipes all data from the selected disk
formatFormats a drive or partition
labelChanges the name of a drive
volDisplays volume label and serial number
defrag C:Defragments drive C
wmic logicaldisk get size,freespace,captionDisplays drive space and free space

Example:

defrag D: /A /V

Analyzes and reports fragmentation on drive D.


🖧 7. Network Sharing and Connectivity

For managing networks, shared drives, and remote access.

CommandDescription
net shareDisplays shared folders
net share FolderName=C:\PathShares a specific folder
net useConnects or disconnects shared network drives
net viewLists all computers on your network
netstat -anDisplays all open ports and listening connections
pathping website.comCombines ping and traceroute data
netsh wlan show profilesShows saved Wi-Fi networks
netsh wlan show profile "WiFiName" key=clearReveals Wi-Fi password
net use Z: \\computer\folderMaps a shared folder as drive Z
net fileLists files opened remotely on your system

Example:

netsh wlan show profile “HomeWiFi” key=clear

Displays the saved Wi-Fi password for your home network.


8. Power and Performance Commands

Monitor and optimize your system performance.

CommandDescription
powercfg /aShows available power modes
powercfg /hibernate onEnables hibernation
powercfg /hibernate offDisables hibernation
powercfg /batteryreportGenerates battery health report
powercfg /energyAnalyzes power efficiency
shutdown /s /t 0Shuts down computer immediately
shutdown /r /t 0Restarts computer immediately
shutdown /lLogs out current user
taskmgrOpens Task Manager
perfmonOpens Performance Monitor

Example:

powercfg /batteryreport /output "C:\battery.html"

Creates a detailed battery usage report for laptops.

cmd commands
cmd commands | Photo credit: www.unsplash.com

🧮 9. Advanced System and Administrative Commands

For troubleshooting and advanced Windows operations.

CommandDescription
msconfigOpens System Configuration utility
regeditOpens Windows Registry Editor
eventvwrOpens Event Viewer
services.mscOpens Services Manager
compmgmt.mscOpens Computer Management console
devmgmt.mscOpens Device Manager
controlOpens Control Panel
appwiz.cplOpens “Programs and Features”
taskschd.mscOpens Task Scheduler
wmic product get name,versionLists installed software

Example:

wmic product get name,version

Lists all installed applications with their versions.


🧰 10. Maintenance and Repair Commands

Keep your Windows system healthy and efficient.

CommandDescription
dism /online /cleanup-image /scanhealthChecks for system image corruption
dism /online /cleanup-image /restorehealthRepairs system image
sfc /scannowScans and fixes system files
cleanmgrOpens Disk Cleanup tool
chkdsk /fFixes disk file system errors
rstruiOpens System Restore
control updateOpens Windows Update settings
setx PATHAdds a directory to the system path
shutdown /aAborts a scheduled shutdown
taskkill /f /im explorer.exeKills Windows Explorer process (restart with start explorer.exe)

Example:

dism /online /cleanup-image /restorehealth

Repairs corrupted Windows files using system resources.


📡 11. Internet and IP Tools

Useful for diagnosing internet problems.

CommandDescription
netsh int ip resetResets TCP/IP settings
netsh winsock resetResets network socket configuration
tracertTraces route packets take to a host
pathpingCombines ping and trace with detailed results
curlTransfers data from URLs
ftpOpens FTP file transfer session
telnetConnects to remote systems (if enabled)
nslookupChecks DNS and IP mapping
route printDisplays current routing table
netsh interface ipv4 show configShows IPv4 configuration details

🧾 12. System Monitoring and Logs

Track what’s happening in your system.

CommandDescription
tasklistLists running applications and services
taskkill /im program.exe /fEnds specific process
type filename.txtDisplays contents of a file
echo %username%Displays current username
echo %computername%Displays computer name
setDisplays environment variables
whoamiShows current logged-in user
logoffLogs off user session
msg * "Your Message"Sends a message to other users on the network
systeminfo > report.txtSaves system info to a text file

🔍 13. File Search and Management Shortcuts

CommandDescription
findSearches for text in files
findstrAdvanced search for text patterns
whereLocates executable files
replaceReplaces text within files
sortSorts text data in a file
typeDisplays file contents
moreDisplays one screen at a time
compCompares file contents
attrib +h filenameHides a file
attrib -h filenameUnhides a file

🧩 14. Fun or Miscellaneous Commands

CommandDescription
color aChanges CMD text color
title MyCMDChanges CMD window title
promptCustomizes CMD prompt display
treeDisplays folder structure graphically
calcOpens Calculator
notepadOpens Notepad
writeOpens WordPad
explorer .Opens current folder in File Explorer
shutdown /iOpens shutdown interface
cmd /kOpens a new CMD window and runs a command

🧠 15. Pro-Level Tips

  • Always run CMD as Administrator for system-level tasks.
  • Use arrow keys to repeat past commands.
  • Use the Tab key for auto-completing folder names.
  • Redirect outputs using: systeminfo > info.txt (This saves system info to a text file.)
  • Chain multiple commands using &&: ipconfig && ping google.com

🧾 Conclusion

CMD remains one of the most powerful and versatile tools in Windows — even in 2025. While many users rely on graphical interfaces, CMD offers speed, flexibility, and control that no GUI can match.

By mastering these 100 CMD commands, you can:

  • Fix Windows errors
  • Speed up troubleshooting
  • Manage networks
  • Control users and drives
  • Monitor system performance

Whether you’re a student, IT professional, or casual user, these commands are invaluable for daily Windows maintenance and productivity.




1. What is CMD in Windows?

CMD (Command Prompt) is a built-in command-line interpreter in Windows that allows users to execute text-based commands to perform various tasks such as managing files, checking network settings, or troubleshooting the system.


2. How do I open CMD in Windows 10 or Windows 11?

You can open CMD by pressing Windows + R, typing cmd, and pressing Enter.
For administrator access, search “Command Prompt” in the Start menu, right-click it, and select Run as Administrator.


3. What is the difference between CMD and PowerShell?

CMD is the older command-line interface with simple commands, while PowerShell is an advanced shell with scripting capabilities and access to system APIs. PowerShell supports CMD commands too.


4. Can CMD commands damage my PC?

Most basic CMD commands are safe, but administrative or system-level commands (like diskpart, format, or del) can cause data loss if used incorrectly. Always double-check before executing.


5. What are the most commonly used CMD commands?

Commonly used commands include:
ipconfig, ping, systeminfo, dir, cd, copy, tasklist, sfc /scannow, and chkdsk.


6. How do CMD commands help in daily computer use?

CMD commands let you quickly fix issues, check network connectivity, view system information, manage files, or automate repetitive tasks without using Windows’ graphical interface.


7. What does the “ipconfig” command do?

ipconfig displays your computer’s IP address, subnet mask, and default gateway — useful for checking internet and network connections.


8. What does “ping” mean in CMD?

The ping command checks if your system can connect to another device or website. For example, ping google.com tests your internet connection and shows response time.


9. How can I check my Windows version using CMD?

Use the command:

ver

or

systeminfo | find "OS"

to display your Windows version and build details.


10. How do I find my computer’s serial number using CMD?

Run:

wmic bios get serialnumber

It will show your computer’s unique serial number — useful for support or warranty claims.


11. Which CMD command shows running processes?

Use:

tasklist

This displays all active programs and background processes running on your system.


12. How can I close a running program through CMD?

Use:

taskkill /im programname.exe /f

For example, taskkill /im notepad.exe /f will close Notepad immediately.


13. What does “sfc /scannow” do in CMD?

sfc /scannow stands for System File Checker. It scans your system for corrupted Windows files and automatically repairs them.


14. How do I check hard drive health with CMD?

Run:

chkdsk C:

This checks the C drive for disk errors or bad sectors and attempts to repair them.


15. What is the difference between “copy” and “xcopy”?

  • copy transfers individual files.
  • xcopy can copy entire directories, subfolders, and multiple files at once — useful for backups.

16. How can CMD help with internet issues?

Commands like ipconfig /flushdns, netsh int ip reset, and ping help fix DNS problems, reset IP configurations, and test internet connectivity.


17. What does “netstat” show?

netstat displays all active network connections, open ports, and listening addresses — helpful for diagnosing network or security issues.


18. How can I find my Wi-Fi password using CMD?

Run:

netsh wlan show profile "WiFiName" key=clear

Replace WiFiName with your actual network name to view the saved Wi-Fi password.


19. What is the “diskpart” command used for?

diskpart is a powerful disk management tool in CMD used to partition, format, or clean drives. Be careful — it can permanently erase data if misused.


20. How do I check battery health on a laptop with CMD?

Run:

powercfg /batteryreport

This generates a detailed HTML battery report saved in your user folder.


21. Can CMD be used to automate tasks?

Yes. You can write CMD batch scripts (.bat) to automate repetitive actions such as backups, software launches, or cleanup routines.


22. How do I restart my PC using CMD?

Use:

shutdown /r /t 0

This command restarts your PC immediately.


23. How can I speed up my PC using CMD?

Commands like:

cleanmgr
sfc /scannow
dism /online /cleanup-image /restorehealth

help remove junk files and repair Windows performance issues.


24. Can CMD be used without an internet connection?

Yes, most commands (like file management or system info commands) work offline. However, network commands (ping, ipconfig, nslookup) require internet or LAN access.


25. What are some advanced CMD commands professionals use?

Advanced users often use:

  • dism /online /cleanup-image /restorehealth for repairing Windows.
  • netsh wlan for Wi-Fi troubleshooting.
  • driverquery for listing all drivers.
  • taskschd.msc to open Task Scheduler.
  • wmic for system and hardware control.

🧩 Bonus Tip: Combine Commands for Efficiency

You can chain multiple commands using &&.
Example:

ipconfig && ping google.com

This will display your IP configuration and then test your internet connection automatically.


🧾 Conclusion

CMD remains a powerful and essential tool in every version of Windows, from Windows 7 to Windows 11.
By learning and using these 100 CMD commands regularly, users can manage files faster, fix problems instantly, and take full control of their PC without relying solely on graphical tools.

For beginners, start with basic commands like dir, cd, and ipconfig.
For advanced users, explore dism, netsh, and taskkill to master system maintenance and automation.


cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

cmd commands

  • Related Posts

    Pc Tips and Tricks – List of 35 for Windows 11 with FAQs

    Reading Time: 10 minutesWindows 11 is packed with new features, a sleek interface, and enhanced performance. But beyond its clean design, Microsoft has hidden dozens of powerful tricks and shortcuts that most users never explore. These hidden features can make your workflow faster, improve security, and help you personalize your PC like never before.

    In this detailed guide, we’ll uncover all the hidden tricks in Windows 11 — from keyboard shortcuts and secret settings to powerful built-in tools you didn’t know existed. Whether you’re a beginner or a power user, these tips will help you get the most out of your Windows 11 experience.

    Read more

    Windows Tips and Tricks – List of 40 for Windows 10 with FAQs

    Reading Time: 10 minutesWindows 10 is one of Microsoft’s most powerful and feature-rich operating systems. While most users are familiar with basic options like the Start Menu and Taskbar, there are dozens of hidden tricks that can make your PC experience faster, smarter, and more enjoyable. These secret features are tucked deep inside Windows, often unnoticed by everyday users.

    In this article, you’ll discover all the best hidden tricks in Windows 10, from productivity boosters to system tweaks that help you get the most out of your computer.

    Read more

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    Pc Tips and Tricks – List of 35 for Windows 11 with FAQs

    • By Editor
    • November 3, 2025
    • 157 views
    Pc Tips and Tricks – List of 35 for Windows 11 with FAQs

    Windows Tips and Tricks – List of 40 for Windows 10 with FAQs

    • By Editor
    • October 31, 2025
    • 75 views
    Windows Tips and Tricks – List of 40 for Windows 10 with FAQs

    Disable Automatic Updates in Windows 10 or 11 – All Tricks

    • By Editor
    • October 29, 2025
    • 73 views
    Disable Automatic Updates in Windows 10 or 11 – All Tricks

    SSD Speed Slow – 25 Tips to speed up Data transfer to pc

    • By Editor
    • October 27, 2025
    • 106 views
    SSD Speed Slow – 25 Tips to speed up Data transfer to pc

    Game not Launching – 25 Common errors or issues in PC Games

    • By Editor
    • October 25, 2025
    • 128 views
    Game not Launching – 25 Common errors or issues in PC Games

    Norton Antivirus – List of all 25 + Features of Security Suite

    • By Editor
    • October 24, 2025
    • 127 views
    Norton Antivirus – List of all 25 + Features of Security Suite
    Telegram