Microsoft Windows command line tools Flashcards
This is the command you should used for if you are not sure.
help or [command] /?
This is the command when you want to close the command prompt
exit
This is the command that you use to list files and directories
dir
This is the command that you use to change working directories
cd
This is the command that you use to make directories
md
This is the command that you use to go to the folder above.
..
This command is used to shut down you computer
shutdown /s /t (nn)
This is the command that you use to restart your computer
shutdown /r /t (nn)
This is the command that you use to abort the shutdown or restart
shutdown /a
This command allows to make changes to your image, updates application, manage drivers, and manage updates
dism
Deployment Image Servicing and Management tool
This command allows you to check your system files
sfc
This command allows you to check your files and fix them while on your way. Also its to fix any corrupted files if malware got in your computer.
sac /scannow
This command fixes logical file system errors on the disk
chkdsk /f
This command locates bad sectors and recovers readable information
chkdsk /r
This command manages disk configurations
diskpart
This command manages task from the command line, No task manager required
tasklist and taskkill
This command displays a list of currently running processes it will also show you the PID number
tasklist
This command terminate task buy process id (PID) or image name
taskkill
example: taskkill /PID 1234 /t
This command manages computers in an active directory domain
gpupdate and gpresult
this command forces a group policy update
gpupdate
example: gpupdate /target: {computer|user} /force
this command verify policy settings for a computer or user
gpresult /r
this command format disk for use with windows
format {name of disk}
this command copies files from one location to another
copy
this command verifies that new files are written correctly
copy /v
This command surpasses promoting to confirm you want to overwrite an existing destination file.
copy /v /y
This command copies files and directory trees
xcopy
example: xcopy /s Documents m:\backups
this is a command that is a better version of xcopy and is included in windows 7, 8, and 10
robocopy