Windows Command Line Commands:
@echo off : Prevent commands from being displayed, only output
cd: Change Directory – .. = up a level – ./dir = down a level into dir – ~ or $Home = user directory
cls: Clear Screen
copy x c:\dir : Copy file x into dir – /Y to overwrite
del /q x : Delete file x – Quiet mode (No confirmation prompts)
dir: List Directory Content
echo “Message” : Write to console
explorer . : Open current directory in Windows Explorer
help X : Documentation for command X
ipconfig: IP and Network info
mkdir dir : Create Directory dir
move x c:\dir : Move file x into directory dir
netstat: Display Connections
pwd: Present working directory
rd /s c:\dir : Remove Directory dir – optional s flag to remove all files in directory
rem: Comments/Remarks
ren x y : Rename file x to y
systeminfo : System config – OS, memory, processors, etc.
xcopy c:\source d:\dir : Copy Files and directories
whoami /groups > groups.txt – Write results to text file
Shift + Insert – To paste into Shell