help
Use if you’re not sure
> help chkdsk
> help dir
Also use:
[command] /?
dir
List files and directories
cd / chdir
Change working directory
Use backslash \ to specify volume or folder name
..
Two dots/periods
The folder above the current folder
md / mkdir
Make a directory
rd / rmdir
Remove directory
hostname
View the name of the device
– This is very useful when there are 10 different terminal
screen tabs in use
This is the Windows Device name
– Name can be changed in the System settings
format
Formats a disk for use with Windows
BE CAREFUL - YOU CAN LOSE DATA
format c:
copy (/v, /y)
Copy files from one location to another
/v - Verifies that new files are written correctly
/y - Suppresses prompting to confirm you want to
overwrite an existing destination file
xcopy
Copies files and directory trees
xcopy /s Documents m:\backups
robocopy
Robust Copy
A better Xcopy
gpupdate
Force a Group Policy update
gpupdate /target:{computer|user} /force
gpupdate /target:user /force
gpresult
Verify policy settings for a computer or user
gpresult /r
gpresult /user sgc/professor /v
shutdown
Shutdown a computer
shutdown /s /t nn
Wait nn seconds, then shutdown
shutdown /r /t nn
Shutdown and restart after nn seconds
shutdown /a
Abort the countdown!
sfc
System File Checker
sfc /scannow
chkdsk /f
Fixes logical file system errors on the disk
chkdsk /r
Locates bad sectors and recovers readable information
Implies /f
diskpart
Manage disk configurations
winver
View the About Windows dialog
ipconfig
Ping your local router/gateway
Determine TCP/IP and network adapter information
View additional configuration details
ping
Test reachability