CMD Commands List
CMD Commands List
dir
Lists files and directories in the current directory.
cd [folder]
Changes the directory.
cd ..
Moves up one directory level.
cls
Clears the screen.
exit
Closes the Command Prompt.
mkdir [folder]
Creates a new directory.
rmdir [folder]
Removes a directory.
del [file]
Deletes a file.
copy [source] [destination]
Copies a file.
move [source] [destination]
Moves a file.
ipconfig
Displays network information.
ping [website]
Tests network connectivity.
tasklist
Shows running processes.
taskkill /IM [process] /F
Forces a process to stop.
shutdown /s /t 0
Shuts down the computer immediately.
netstat -an
Displays active network connections.
systeminfo
Shows system details.
wmic cpu get name
Displays CPU information.
wmic bios get serialnumber
Retrieves BIOS serial number.
chkdsk /f
Checks and fixes disk errors.
sfc /scannow
Scans and repairs system files.
diskpart
Opens disk partition management.
format [drive:]
Formats a drive.
attrib +h +s [file/folder]
Hides a file or folder.
tree
Displays folder structure.
hostname
Shows the computer name.
echo Hello
Prints text on the screen.
pause
Pauses a batch file execution.
color [code]
Changes CMD text color.
whoami
Displays the current logged-in user.
net user
Lists all user accounts.
net share
Displays shared folders on the network.
arp -a
Shows the ARP table (IP-to-MAC mapping).
tracert [website]
Traces the route packets take to a host.
nslookup [website]
Finds the IP address of a domain.
gpupdate /force
Updates Group Policy settings.
regedit
Opens the Windows Registry Editor.
taskmgr
Opens Task Manager.
msconfig
Opens the System Configuration tool.
eventvwr
Opens the Event Viewer.
bcdedit
Manages boot configuration data.
driverquery
Lists installed drivers.
schtasks /query
Shows scheduled tasks.
cipher /e [file/folder]
Encrypts a file or folder.
cipher /d [file/folder]
Decrypts a file or folder.
fc [file1] [file2]
Compares two files.
dxdiag
Opens the DirectX Diagnostic Tool.
wmic csproduct get name, identifyingnumber
Shows system model & serial number.
powercfg /batteryreport
Generates a battery health report.
ipconfig /flushdns
Clears the DNS cache.
netsh wlan show profiles
Shows saved Wi-Fi profiles.
netsh wlan show profile [WiFi-name] key=clear
Shows the saved Wi-Fi password.
shutdown /r /t 0
Restarts the computer immediately.
echo %username%
Displays the current username.
echo %computername%
Shows the computer name.
msg * "Hello, this is a message"
Displays a popup message.
start chrome www.google.com
Opens a website in Chrome.