Windows Commands Flashcards
help
Provides information on available commands
/?
another version of help to provide specific info on a given command
dir
Lists the files and directories
cd / chdir
Change the working directory
use \ to specify the volume or folder name
..
move to the folder above the current folder
md / mkdir
Make a directory
rd / rmdir
Remove directory
hostname
View the name of the device
format
Formats a disk for use with Windows
copy (/v & /y)
copy files from one location to another
/v - verifies the new files are written correctly
/y - suppresses prompting to confirm you want to overwrite and existing destination file
xcopy
Copies files and directory trees
Robocopy
a better xcopy
gpupdate
Force a Group Policy update
gpresult
Verify policy settings for a computer or user
shutdown (/s /t nn) (/r /t nn) (/a)
shutdown a computer
wait nn seconds then shutdown
shutdown and restart after nn seconds
abort the countdown
sfc
System File Checker, scan integrity of all protected system files
chkdsk (/f) (/r)
/f - fixes logical file system errors on the disk
/r - locates bad sectors and recovers readable information
diskpart
start the DiskPart command interpreter
winver
view the about Windows dialog
ipconfig
Ping your local router/gateway and determine TCP/IP and network adapter information
ping
test reachability by determining round-trip time
netstat ( -a, -b, -n)
display network statistics
-a shows all active connections
-b shows binaries
-n do not resolve names
nslookup
Lookup information from DNS servers
net
Windows network commands
tracert
Determine the route a packet takes to its destination
pathping
Combine ping and traceroute. Builds a traceroute first and then pings.