Section 1.2 -- Windows Commands Flashcards

(22 cards)

1
Q

What command get you more info about other commands?

A

Help or /?

e.g. type “Help copy” or “copy /?”

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

How do you clear the screen?

A

cls

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

How do you list files and directories?

A

dir

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

How do you change directories?

A

Cd or chdir changes to a different directory. Use backslash to specify volume name or .. to move to a higher level in the file tree.

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

How do you make, change, or remove directories?

A

Mkdir, chdir, rmdir OR md/cd/rd

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

How do you view the name of the device you’re working on?

A

hostname

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

How do you format a drive?

A

format – BACKUP FIRST

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

What are variants of the copy command?

A

Copy
/v – verifies that copied files are formatted correctly
/y – overrides prompts

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

How do you copy every subfolder under the current directory?

A

xcopy /s

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

How do you use xcopy /s?

A

xcopy/s [folder] [destination]

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

What is an improved version of the copy command?

A

Robocopy. It allows you to…

copy subs but not empty ones, move files and delete from source, copy for compatibility with older OSes, wait for free bandwidth on slow lines, only copy files during certain time of day, begin copy and wait until connectivity is restored, etc. etc.

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

Name variants of the shutdown command

A

Shutdown
Shutdown /s /t nn – shutdown after a certain number of seconds
Shutdown /r /t nn – shutdown and restart after nn seconds
Shutdown /a – abort shutdown

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

How do you create partitions from an available disk?

A

diskpart

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

How do you get the version of Windows on your local system?

A

winver

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

What are the group policy commands?

A

gpupdate – forces a group policy update without going through the login process

gpresult – verifies group policy settings for a given device

gpresult /r – shows you all the AD settings and configurations

gpresult /force – applies all policy updates

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

What’s the best command to start troubleshooting the network?

A

ipconfig or ipconfig/all – these show:

Adapter info, IP info, network configuration, DNS, DHCP server, hostname, IP address, subnet mask, and more.

17
Q

How do you test reachability?

A

Use the ping command. Look for four pings with equal amounts of data to indicate a healthy ping.

18
Q

How do you collect network statistics?

A

netstat

netstat -a lets you see all active devices
netstat -b lets you see application traffic

19
Q

How do you look up IP addresses from a named server?

20
Q

How do you find and manage shares on a server?

A

Net

Net view [address] lets you see shares on a server

net use [directory] lets you see into a directory on a share

21
Q

How do you determine the route a packet takes to a destination?

A

Tracert. Uses the TTL exceeded error message to measure hops inside and outside the network. Using this inside your network shows you if your routing tables are correct. Using this outside the network shows you a possible error location if the number of hops changes.

22
Q

What command combines tracert with ping?

A

Pathping. First shows tracert data, then collects data for 200 seconds. Provides full summary of communication – ms, packet loss, loss/sent ratio, IP addresses.