Windows Commands Flashcards
Name 2 ways to open the windows command prompt screen
- windows + instant search + cmd
- ctrl + X
Shutdown command
C:> Shutdown
Shutdown switch — just shut down
-/s
shutdown switch — shutdown and restart
-/r
shutdown switch with time delay
-/t
list all running tasks
tasklist
stop procces by name or process id
taskkill
what is the command to list all processes running and their ID
C:> tasklist
What is the command to stop a task
Actual command to kill specific task
C:> taskkill /PID number (or name)
What command queries DC for group policy for changes
gpupdate
what command tells you what group policies have been updated
gpresult
what command would make a hard drive backup?
xcopy c:\backup path
What xcopy switch would copy all subdirectories?
-/s
what does xcopy switch /s do?
copies all subdirectories
what does xcopy switch -/v do?
verifies each copy
what does xcopy switch -/h do
no hidden files (to be copied)
what xcopy switch verifies each copy
-/v
what xcopy switch stops copying hidden files
-/h
what does robocopy do differently than xcopy
faster and has more file verification than xcopy
what robocopy switch stops hidden folders from being copied?
-/xa:h
what does robocopy switch -/xa:h do?
stops robocopy from copying hidden files