1.2 - Windows Command Line Tools Flashcards

1
Q

Privileges

A

Not all users can run all commands
– Some tasks are for the administrator only

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

Command line troubleshooting

A

Use “help” if you’re not sure
> help dir
[command] /?

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

dir

A

– List files and directories

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

cd / chdir

A

– Change working directory
– Use backslash \ to specify volume or folder name

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

..

A

– Two dots/periods
– The folder above the current folder

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

md / mkdir

A

– Make a directory

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

rd / rmdir

A

Remove directory

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

hostname

A
  • View the name of the device
    – This is very useful when there are 10 different terminal - screen tabs in use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

format

A
  • Formats a disk for use with Windows
  • BE CAREFUL - YOU CAN LOSE DATA
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

copy (/v, /y)

A

Copy files from one location to another
/v - Verifies that new files are written correctly /y - Suppresses prompting to confirm you want to overwrite an existing destination file

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

xcopy

A
  • Copies files and directory trees
    xcopy /s Documents m:\backups
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Robust Copy
* robocopy

A

– A better Xcopy
– Included with Windows 10 and 11

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

Group Policy

A

Manage computers in an Active Directory Domain – Group Policy is usually updated at login

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

gpupdate

A

Force a Group Policy update
– gpupdate /target:{computer|user} /force – gpupdate /target:user /force

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

gpresult

A

Verify policy settings for a computer or user
– gpresult /r
– gpresult /user sgc/professor /v

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

shutdown

A
  • Shutdown a computer – And optionally restart
17
Q

shutdown /s /t nn

A

– Wait nn seconds, then shutdown

18
Q

*shutdown /r /t nn

A

– Shutdown and restart after nn seconds

19
Q

shutdown /a

A

– Abort the countdown!

20
Q

sfc

A

System File Checker
– Scan integrity of all protected system files

21
Q

chkdsk /f

A

– Fixes logical file system errors on the disk

22
Q

DiskPart

A

start the DiskPart command interpreter

23
Q

winver

A

View the About Windows dialog – A quick check
* Useful when troubleshooting
– Are you running the latest version?

24
Q

ipconfig

A

Most of your troubleshooting starts with your IP address – Ping your local router/gateway
Determine TCP/IP and network adapter information – And some additional IP details
View additional configuration details – DNS servers, DHCP server, etc.

25
Q

ping

A

Test reachability
– Determine round-trip time
– Uses Internet Control Message Protocol (ICMP)
* One of your primary troubleshooting tools – Can you ping the host?

26
Q

netstat

A

Network statistics
– Many different operating systems

27
Q

nslookup

A

Lookup information from DNS servers
– Canonical names, IP addresses, cache timers, etc.
* Lookup names and IP addresses – Many different options

28
Q

net

A

Windows network commands
* View network resources
Map a network share to a drive letter
View user account information and reset passwords

29
Q

tracert

A

Determine the route a packet takes to a destination – Map the entire path

30
Q

pathping

A

Combine ping and traceroute
– Included with Windows NT and later
* First phase runs a traceroute – Build a map
* Second phase
– Measure round trip time and packet loss at each hop