Module 1 Labs Flashcards
What command brings up the directory of the current volume?
C:>dir
This shows all the folders in the current directory.
If you want to open the Program Files directory in the C: drive?
C:>cd “C:\program files”
Because there is a space in the directory, you have to enclose the path in quotation marks.
From C:\Program Files> how would you go back to the root directory?
C:\Program Files>cd .
If your directory has a space, but you don’t want to use quotes around the path, which command would you use?
C:\chdir C:\program files
From C:\Program Files>, how would you get to the D: drive?
To the E: drive?
How would you check the directory in E:?
C:\Program Files>D:
D:>E:
E:>dir
If you have a full screen, how do you clear the screen?
C:>cls
This clears screen!
What config brings up the local IP address, subnet mask, default gateway, IPv6 addresses and connection status of media?
C:\Users\Administrators\ipconfig
How can you tell if an IPv6 address is self-assigned?
It begins with fe80.
How can you tell if a IPv4 address is self-assigned?
If it starts in the 169-254 range.
What gives you all the necessary networking information?
This will show the DNS server, its addresses, whether the network is DHCP enabled and auto configuration enabled., etc.
C:\Users\Administrator>ipconfig /all
How do you test network connections?
How would you ping the loop back address? Such that you know that IPv4 is installed and bound to the local NIC card?
C:\Users\Administrators>ping
C:\Users\Administrators>ping 127.0.0.1
________ is the loop back address. All machines use this to refer to themselves. If you were having communication issues, you could check this to make sure that IPv4 is there and bound to the NIC.
127.0.0.1
How would you check to see if your own IP is assigned and bound to the NIC?
Ping your own IP address.
How would you check to see if you can get to the router?
Ping the gateway IP address?
How can you confirm that you can get to something outside your network on another router?
You could ping a machine on the outside of the router. 8.8.8.8 is the Google DNS server which you can ping.
How do you run a trace route?
C:\Users\Administator>tracert [name of another machine]
What happens when you run tracert on the public internet?
Often they will timeout as routers between two locations will be configured to not respond to these requests.
Which command will tell you which open connections your machine has to other machines?
C:\Users\Administrator\ netstat
________ is the IPv6 loopback address. If you were to run netstat and see this, you would know that the machine is able to talk to itself using IPv6.
::1
How do you test DNS? This will show you which server is the DNS server.
C:\Users\Administrator>nslookup
How do you look for certain types of records in DNS lookup?
set type:
Look this up in Google to see why you’d ever do this…
How do you run the disk partition command line tool? If we select /? To lookup switches, we see that it would like us to call a script. What is the switch for using a script here?
C:\Users\Administrator>diskpart
/s [script]
How would we create a Windows Recovery Environment partition using diskpart?
Use the command C:\Users\Administrator>diskpart /s
Select disk 0 // This selects the physical disk which alsways starts at 0 as opposed to a logical disk
Clean // This wipes data from the drive.
Convert gpt // this creates a guid partition table.
Create partition primary size=800 //this gives the size in megabytes.
Format quick fs=ntfs label=“Windows RE” //This formats the partition and names it.
Assign letter=“R” // this assigns a letter.
How would you format a drive?
C:\Users\Administator>format /?
This will bring up all the switches for the format command.
How would you shutdown the machine from CLI?
C:\Users\Administrator>shutdown
How would you run system file checker and what does it do?
C:\Users\Administrator> sfc
This will scan the system to check the integrity of all system files and replace incorrect versions with correct Microsoft versions