Windows users can execute commands using Command Prompt (cmd) or PowerShell. Below is a list of commonly used commands:


1. File & Directory Management

Command Description Example
mkdir Create a new directory mkdir NewFolder
rmdir /s Delete a directory and its contents rmdir /s OldFolder
del Delete a file del file.txt
copy Copy a file copy source.txt destination.txt
move Move or rename a file move file.txt C:\NewLocation
dir List files in a directory dir C:\Users
cd Change directory cd Documents
cd .. Move up one directory cd ..
cls Clear terminal screen cls
tree Display directory structure tree
new-item Create a new file new-item injex.js

2. System Information & Control

Command Description Example
systeminfo Display system details systeminfo
hostname Show computer name hostname
echo %USERNAME% Display current user echo %USERNAME%
tasklist List running processes tasklist
taskkill /IM Kill a process by name taskkill /IM notepad.exe /F
shutdown /s /t 0 Shut down the system shutdown /s /t 0
shutdown /r /t 0 Restart the system shutdown /r /t 0

3. Network & Internet Commands

Command Description Example
ipconfig Show network configuration ipconfig
ipconfig /all Detailed network info ipconfig /all
ipconfig /release Release IP address ipconfig /release
ipconfig /renew Renew IP address ipconfig /renew
ping Check network connection ping google.com
tracert Trace route to a server tracert google.com
netstat -an View network connections netstat -an
nslookup Get domain IP info nslookup google.com

4. Disk & Storage Commands

Command Description Example
chkdsk Check disk for errors chkdsk C:
diskpart Open disk partition manager diskpart
format Format a drive format D:
wmic logicaldisk get name List all drives wmic logicaldisk get name

5. User & Permission Management

Command Description Example
whoami Show current user whoami
net user List users net user
net user username password Change user password net user John newpassword
net localgroup Show user groups net localgroup

6. PowerShell-Specific Commands

For advanced users, PowerShell provides more functionality than cmd. Some useful PowerShell commands:

PowerShell Command Description Example
Get-Help Get help for a command Get-Help Get-Process
Get-Process List running processes Get-Process
Stop-Process -Name Kill a process Stop-Process -Name Notepad
Get-Service List services Get-Service
Restart-Computer Restart the system Restart-Computer
Get-EventLog -LogName System View system logs Get-EventLog -LogName System

Conclusion

These commands help Windows users navigate the terminal efficiently. Whether you're managing files, checking system info, or troubleshooting networks, Command Prompt and PowerShell make it easy to control your system. 🚀