Windows Commands Flashcards

(53 cards)

1
Q

Name 2 ways to open the windows command prompt screen

A
  1. windows + instant search + cmd
  2. ctrl + X
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Shutdown command

A

C:> Shutdown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Shutdown switch — just shut down

A

-/s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

shutdown switch — shutdown and restart

A

-/r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

shutdown switch with time delay

A

-/t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

list all running tasks

A

tasklist

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

stop procces by name or process id

A

taskkill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the command to list all processes running and their ID

A

C:> tasklist

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the command to stop a task

Actual command to kill specific task

A

C:> taskkill /PID number (or name)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command queries DC for group policy for changes

A

gpupdate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what command tells you what group policies have been updated

A

gpresult

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what command would make a hard drive backup?

A

xcopy c:\backup path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What xcopy switch would copy all subdirectories?

A

-/s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does xcopy switch /s do?

A

copies all subdirectories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what does xcopy switch -/v do?

A

verifies each copy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what does xcopy switch -/h do

A

no hidden files (to be copied)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

what xcopy switch verifies each copy

A

-/v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

what xcopy switch stops copying hidden files

A

-/h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

what does robocopy do differently than xcopy

A

faster and has more file verification than xcopy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

what robocopy switch stops hidden folders from being copied?

A

-/xa:h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

what does robocopy switch -/xa:h do?

A

stops robocopy from copying hidden files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

what command would you use to format a drive?

A

format (listdrive) /FS:(File system type ex:NTFS)

23
Q

format drive /FS:NTFS

A

formats drive

24
Q

what format drive switch would perform a quick format?

25
How would you check a drive for errors?
chkdsk
26
how would you check a disk and perform fixes?
chkdsk /f
27
how would you perform a more thorough file check? Using what two types of commands?
1. system file checker 2. DISM in this order
28
what command scans critical file systems and fixes them?
sfc /scannow
29
sfc /scannow
scans critical system files and fixes them
30
sfc /verifyonly
scans critical system files and tell you what errors exist
31
how would you scan critical system files and verify whether any errors exist without fixing them?
sfc /verifyonly
32
How would you find problems, check online to verify and fix problems?
dism /online /cleanup-image /restore
33
dism /online /cleanup-image /restore
finds problems checks online to verify files fixes problems
34
diskpart command
opens an interactive screen that allows you to input dispart commands
35
diskpart> list disk
lists available disks
36
what number disk is the boot?
0
37
how would you select a disk in diskpart
select disk +
38
how would you create a primary partition in diskpart?
diskpart> create partition primary
39
what steps would you take to create a new primary partition? 7 steps
1. diskpart 2. diskpart> list disk 3. diskpart> select disk # 4. diskpart> create partition primary 5. diskpart> select partition # 6. diskpart> format FS=NTFS quick 7. diskpart> assign letter=X
40
what command would you use to delete a file?
del filename.ext
41
what command would you use to delete all files with an extension?
del *.ext
42
del *.ext
deletes all files with that extension
43
del * . *
delete everything
44
copy filename.ext path
copies file from one location to the next
45
move filename.ext path
moves the file (without retaining the copy in the original location) to a new location
46
copy *.ext path
copies everything with that extention to the new location
47
copy *.* path
copies everything in one location to the path location
48
how would you create a new folder? 2 steps
1. make sure you’re in the folder above the location where you want the new folder to be located 2. md_name
49
md_name
make directory (folder)
50
how would you remove a directory?
rd_name
51
rd_name
removes a directory
52
2 help commands?
/? help command
53
how would you clear the screen?
cls