Windows Command Line Flashcards

1
Q

what does the netstat command do

A

it displays very detailed information about how your computer is communicating with other computers or network devices.

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

what does it do when /? is added to the end of a command?

A

a tool which will return which syntax can be used with that particular command.

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

what is the cd command?

A

change directory

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

what is the dir command?

A

it means directory and will list out the contents of any directory.

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

how are the . symbol utilized in the command line?

A

one . will change a directory, two . will take you up two directorys.

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

how do you clear the screen?

A

cls

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

how do you open a file to see the contents?

A

type cd and then the name of the file you want to see.

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

how do you create a directory?

A

md

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

if you are creating a file with two words. what do you need to be sure to add?

A

a set of quotes around the words.

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

how do you remove a directory?

A

rmdir

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

how do you access different drives?

A

type in the letter of the drive followed by a colon.

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

how do you copy a file to a different drive?

A

copy Insert file name *insert drive *\file1.txt

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

how do you move a file?

A

move file2.txt f:\file2.txt

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

what is the xcopy command?

A

to copy the files of one or more directory at a time.

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

what is robo copy?

A

used when doing copies to or from network drives. the newest type of copy utility.

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

how do you see your disk partitions in the command line

A

diskpart

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

once inside the disk partition, how do you list the partitions?

A

list disk

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

how do you format a disk from the command line?

A

format p: /fs:fat32

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

how do you check if there area any problems with the disk?

A

chkdsk

20
Q

how can you fix errors or bad sectors on the disk?

A

chkdsk p: /r

21
Q

what is the command to shut down the system?

A

shutdown

22
Q

what is the system file checker?

A

provides a manual interface for verifying system files and restoring them from the cache.

23
Q

how do you find the windows version in the command line?

A

winver

24
Q

how do you find detailed system information?

A

systeminfo

25
Q

how do you find information about your ip configuration?

A

ipconfig

26
Q

how do you find out even more detailed information about your IP address.

A

ipconfig /all

27
Q

how can you extend your DHCP lease?

A

ipconfig /renew

28
Q

how can you get rid of your IP address?

A

ipconfig /release

29
Q

how can you see whats inside of a DNS cache?

A

ipconfig /displaydns

30
Q

how can you clear out the DNS resolver?

A

ipconfig /flush

31
Q

how can you gain diagnostic information about the network?

A

ping localhost

32
Q

how can you ping your gateway?

A

ipconfig

33
Q

how can you figure out how many hops to a website?

A

tracert website name

34
Q

how can you perform a traceroute and ping each router along the hop?

A

pathping

35
Q

what does ipconfig do?

A

provides information about your own network connection.

36
Q

what does ping do?

A

verifies there is good connectivity between the client and the remote destination.

37
Q

what does tracert do?

A

shows each and every stop along the way by using multiple pings all the way out and all the way back.

38
Q

what does path ping do?

A

gives a more accurate round trip time being calculated.

39
Q

how do you find out the name configured on your local machine?

A

hostname

40
Q

how can you look up the name and ip address of a site?

A

nslookup

41
Q

what does netstat do?

A

checks for open ports on a given client and looks for ports or connections on listening mode.

42
Q

when is netstat most helpful?

A

for malware removal or threat hunting against bad actors.

43
Q

what is the group policy for?

A

a set of policies across all users on a given system or across all systems on a given domain.

44
Q

how do you open the group policy editor?

A

gpedit

45
Q

how do you force a group policy update?

A

gpupdate /force

46
Q

how can you see what policies are applied to a given user?

A

gpresult /R