Owner
Verification
Tags
Command Prompt/PowershellCurriculum
π Navigation & File System
cd
β Change Directorydir
β Directory Listingcls
β Clear Screen
Moves between folders.
cd C:\Users\YourName\Documents
cd .. :: Move up one directory
cd \ :: Jump to the root of the drive
Lists files and folders in the current directory.
dir
dir /a :: Show hidden/system files
dir /s :: Show files in all subdirectories
Wipes the CMD window.
cls
π File & Folder Management
mkdir
ormd
β Make Directoryrmdir
orrd
β Remove Directorycopy
β Copy File(s)robocopy
β Extended Copy (files + directories)move
β Move or Rename Filedel
β Delete File
Creates a new folder.
mkdir Projects
Deletes a folder (empty by default).
rmdir Projects
rmdir /s Projects :: Deletes folder + contents
Copies files from one place to another.
copy report.txt C:\Backup\
robocopy C:\Data D:\Backup /e /copyall
move oldname.txt newname.txt
Removes a file permanently.
del file.txt
del *.tmp :: Deletes all .tmp files
βοΈ System Information & Utilities
echo
β Print text to screenipconfig
β Show network configurationping
β Test connectivitytasklist
β List running processestaskkill
β Kill a process by name or PIDsysteminfo
β Get system detailshostname
β Displays computerβs hostname
echo Hello, World!
ipconfig
ipconfig /all
ipconfig /release && ipconfig /renew
ping google.com
tasklist
taskkill /im notepad.exe /f
systeminfo
hostname
π Searching & Filtering
find
β Search inside files or outputfindstr
β More advanced search (regex supported)- Pipes (
|
) β Send output of one command into another
find "error" logfile.txt
findstr /i "warning" logfile.txt
ipconfig | find "IPv4"
π¦ Batch File Basics
- Create a script file (
.bat
or.cmd
) to automate commands:
@echo off
echo Backing up Documents...
xcopy C:\Users\YourName\Documents D:\Backup /e /h /i
echo Done!
pause
π‘οΈ Useful Admin Tools
chkdsk
β Check disk for errorssfc
β System File Checker (repairs system files)net user
β Manage local usersshutdown
β Shut down or restart computer
chkdsk C:
sfc /scannow
net user
net user NewUser MyPassword123 /add
shutdown /s /f /t 0 :: Shutdown immediately
shutdown /r /t 0 :: Restart immediately
β Quick Reference Cheat Sheet
Task | Linux Command | Windows CMD Equivalent |
Print current dir | pwd | cd (no args) |
List files | ls | dir |
Change dir | cd | cd |
Create folder | mkdir | mkdir / md |
Delete file | rm file | del file |
Delete folder | rm -r folder | rmdir /s folder |
Show network info | ifconfig/ip | ipconfig |
Kill process | kill | taskkill |