Les 11A Flashcards

1
Q

You want to list all files and directories in the current directory. Which command do you use?

A

dir

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

You need to change the current working directory to a specific folder. Which commands can you use?

A

cd or chdir

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

You are in a folder and need to move to its parent directory. Which command do you use?

A

..

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

You need to create a new directory named “Projects”. Which command do you use?

A

md Projects or mkdir Projects

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

You need to delete an empty directory named “OldFiles”. Which command do you use?

A

rd OldFiles or rmdir OldFiles

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

You need to reference the primary storage drive on your Windows computer. How do you do this?

A

Use the drive letter followed by a colon, e.g., C:.

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

You need to find out the hostname of your device. Which command do you use?

A

hostname

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

You need to format the primary storage drive (C:). Which command do you use, and what should you be cautious of?

A

format c:. Be careful, as formatting will erase all data on the drive.

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

You need to copy a file from one location to another and want to verify that the file is copied correctly. Which command and option do you use?

A

copy /v

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

You want to suppress the prompt asking for confirmation before overwriting a file when copying. Which command and option do you use?

A

copy /y

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

You need to copy an entire directory tree from the “Documents” folder to a backup location on drive M:. Which command and option do you use?

A

xcopy /s Documents m:\backups

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

You need a more robust copy solution for copying files and directories. Which command do you use?

A

robocopy

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

You need to force a Group Policy update on a computer. Which command do you use?

A

gpupdate /target:computer /force

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

You need to verify the Group Policy settings applied to a specific user. Which command do you use?

A

gpresult /user sgc/professor /v

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

You need to shut down a computer after a delay of 60 seconds. Which command do you use?

A

shutdown /s /t 60

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

You initiated a shutdown with a countdown but need to cancel it. Which command do you use?

A

shutdown /a

17
Q

You suspect that some system files are corrupted and need to scan their integrity. Which command do you use?

A

sfc /scannow

18
Q

You need to fix logical file system errors on a disk. Which command do you use?

A

chkdsk /f

19
Q

You want to locate bad sectors on a disk and recover readable information. Which command do you use?

A

chkdsk /r

20
Q

You need to manage disk configurations and understand the risks involved. Which command do you start with?

A

diskpart

21
Q

You need to quickly check the version of Windows you are running to ensure it is up to date. Which command do you use?

A

winver

22
Q

You need to find out your computer’s IP address and the details of your network adapter. Which command do you use?

A

ipconfig

23
Q

You need to see all active network connections on your computer. Which netstat command do you use?

A

netstat -a

24
Q

You need to see the executable files (binaries) associated with each active network connection on your Windows computer. Which netstat command do you use?

A

netstat -b

25
Q

You want to check the DNS server details for a specific domain. Which command do you use?

A

nslookup

26
Q

You want to map a network share to drive letter H. Which command do you use?

A

net use h: \\<servername>\<sharename>

27
Q

You need to view all shared resources on a specific server in your network. Which command do you use?

A

net view \\<servername>

28
Q

You need to view user account information and reset a password for a specific user. Which command do you use?

A

net user <username> * /domain

29
Q

You want to determine the route a packet takes to reach a destination and map the entire path. Which command do you use?

A

tracert

30
Q

You need to run a traceroute on a Windows machine, and you understand that it uses ICMP echo requests. What do you need to be aware of regarding ICMP and firewalls?

A

Outgoing ICMP may be filtered by some firewalls, and ICMP is low-priority for many devices.

31
Q

You want to combine the functionalities of ping and traceroute to not only build a route map but also measure round trip time and packet loss at each hop. Which command do you use?

A

pathping

32
Q

What are the two phases of the pathping command and what does each phase do?

A

The first phase runs a traceroute to build a map, and the second phase measures round trip time and packet loss at each hop.