Windows 11 Terminal & Shell Commands Cheat Sheet
Basic System Commands
ping: Test network connectivity.
ipconfig: Display IP address, subnet mask, and gateway.
hostname: Show your computer's name.
whoami: Show the current logged-in user.
systeminfo: Display detailed system information.
tasklist: List all running processes.
taskkill /PID <pid>: Kill a process by its Process ID.
Network Commands
tracert: Trace the route packets take to a destination.
nslookup: Get DNS information for a domain.
netstat: View active connections and listening ports.
arp -a: Display the ARP table.
ipconfig /flushdns: Clear the DNS cache.
Disk and File System Commands
dir: List files and directories.
cd: Change directory.
mkdir: Create a folder.
del: Delete files.
chkdsk: Check and repair disk errors.
diskpart: Manage hard drives and partitions.
tree: Show folder structure.
System Management Commands
sfc /scannow: Scan and repair corrupted system files.
shutdown /s: Shut down the system.
shutdown /r: Restart the system.
msconfig: Open system configuration utility.
taskmgr: Open Task Manager.
User Management
net user: List user accounts.
net user <username>: View user details.
net user <username> /add: Create a new user.
net user <username> /delete: Delete a user.
PowerShell Advanced Commands
Get-Process: List running processes.
Get-Service: List running services.
Restart-Service: Restart a service.
Get-EventLog: View system logs.
Test-Connection: Ping alternative in PowerShell.
Security Commands
cipher: Securely delete files.
netsh firewall: Configure the Windows Firewall.
manage-bde: Manage BitLocker encryption.
gpupdate /force: Force Group Policy update.
Bonus Tip:
To restart your network adapter without rebooting the PC:
ipconfig /release
ipconfig /renew