Windows Commands Flashcards

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?

A

/q

25
Q

How would you check a drive for errors?

A

chkdsk

26
Q

how would you check a disk and perform fixes?

A

chkdsk /f

27
Q

how would you perform a more thorough file check? Using what two types of commands?

A
  1. system file checker
  2. DISM

in this order

28
Q

what command scans critical file systems and fixes them?

A

sfc /scannow

29
Q

sfc /scannow

A

scans critical system files and fixes them

30
Q

sfc /verifyonly

A

scans critical system files and tell you what errors exist

31
Q

how would you scan critical system files and verify whether any errors exist without fixing them?

A

sfc /verifyonly

32
Q

How would you find problems, check online to verify and fix problems?

A

dism /online /cleanup-image /restore

33
Q

dism /online /cleanup-image /restore

A

finds problems
checks online to verify files
fixes problems

34
Q

diskpart command

A

opens an interactive screen that allows you to input dispart commands

35
Q

diskpart> list disk

A

lists available disks

36
Q

what number disk is the boot?

A

0

37
Q

how would you select a disk in diskpart

A

select disk +

38
Q

how would you create a primary partition in diskpart?

A

diskpart> create partition primary

39
Q

what steps would you take to create a new primary partition?

7 steps

A
  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
Q

what command would you use to delete a file?

A

del filename.ext

41
Q

what command would you use to delete all files with an extension?

A

del *.ext

42
Q

del *.ext

A

deletes all files with that extension

43
Q

del * . *

A

delete everything

44
Q

copy filename.ext path

A

copies file from one location to the next

45
Q

move filename.ext path

A

moves the file (without retaining the copy in the original location) to a new location

46
Q

copy *.ext path

A

copies everything with that extention to the new location

47
Q

copy . path

A

copies everything in one location to the path location

48
Q

how would you create a new folder? 2 steps

A
  1. make sure you’re in the folder above the location where you want the new folder to be located
  2. md_name
49
Q

md_name

A

make directory (folder)

50
Q

how would you remove a directory?

A

rd_name

51
Q

rd_name

A

removes a directory

52
Q

2 help commands?

A

/?
help command

53
Q

how would you clear the screen?

A

cls