Command prompt Flashcards

1
Q

How do you get to the root using dir?

A

c:\ (the slash)

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

How do you change drive in cmd?

A

d: (no cd needed)

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

What’s the dir command to get to c:\man\im\fukin\bored.txt

A

dir c:\man\im\fukin\bored.txt

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

What is a syntax?

A

A correctly written cmd command

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

Joseph wants to read his 1000 files of erotica but using the dir command overwhelms his cmd prompt. How can he stagger the results so they’re more visually digestible?

A

dir /p to make pages instead of a text dump

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

A lalafell wants to make a folder called madbcuzsmall in their pictures library. If their username is “hench” what command would they need to use to accomplish this?

A

mkdir c:\users\hench\pictures\madbcuzsmall

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

The lalafell now wants to delete the madbcuzsmall folder. How u do that?

A

rmdir c:\users\hench\pictures\madbuzsmall\

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

How do you run a file in cmd?

A

Locate the folder its in and type the name innit

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

Gorb wants to find a funne meme png on his system but only remembers its filename starting with pizza. How can he look for it?

A

By locating to the folder its in and typing dir pizza*.png

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

are del commands sent to the recycle bin?

A

Nope. Deleted permanantly

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

Can wildcards be used with the del command?

A

Yes

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

What is the four step process to using the copy command

A

1) Go to directory
2) Type copy
3) Add file to copy
4) Add destination to copy to

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

What is an example of a copy command

A

copy haru.png coom (copies hary.png to coom folder)

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

what is the main feature of xcopy

A

To copy multiple directories

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

How do you copy all but empty directories with xcopy

A

xcopy /s

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

How do you xcopy all including empty directories

A

xcopy /e

17
Q

What is the main feature of robocopy

A

To copy directories from one computer to another

18
Q

What does robocopy /mir do

A

Mirrors the copied directory to the specified location EXACTLY, erasing anything that doesn’t match the mirrored image

19
Q

What chkdsk switch checks for bad sectors only?

A

/r

20
Q

What chkdsk switch fixes bad sectors?

A

/f

21
Q

what cmd will show you the name of your computer

A

hostname

22
Q

What are the two group policy commands

A

gpupdate, gpresult (shows your group policy information for the user/computer)

23
Q

what is the switch to restart a computer

A

shutdown /r