Windows Command Prompt Commands

This exercise complements material in the CompTIA Security+: Get Certified Get Ahead: SY0-501 Study Guide.

You can use this lab to familiarize yourself with some common Windows Command Prompt commands.

Prerequisites. Launch a Command Prompt window within a Windows operating system. If you’re not sure how, follow the steps in the study guide to do so.

Note: The purpose of this lab is to give you some experience playing around with commands. I strongly encourage you to go beyond these steps though. After entering any of the commands, look at the help and see what else you can do.

1. Enter the following commands to observe how you can get help for each command.

ping /? 

ipconfig -?

netstat /?

2. Enter the following commands to observe how most Windows commands are not case sensitive.

ping -6 localhost

PiNg -6 localHOST

PING -6 LocalHost

3. Enter the following command to identify the IP address of your default gateway.

ipconfig

For example, here’s part of the output showing one line as the default gateway.

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::384a:2031:e5bf:70bd%16
IPv4 Address. . . . . . . . . . . : 192.168.1.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

4. Use the following command to ping your default gateway. Use a different IP address if your default gateway is different.

ping 192.168.1.1

Notice that the pings stop after sending four pings.

5. Use the following command to ping your default gateway repeatedly. Use a different IP address if your default gateway is different.

ping -t 192.168.1.1

Press CTRL+C to stop it after it pings at least five times.

6. Use the following command to see how ping performs name resolution.

ping getcertifiedgetahead.com

Notice that the first line after this command shows the IP address of the domain name.

7. Enter the following command to see the Domain Name System (DNS) cache

ipconfig /displaydns

8. Use the following command to see a listing of all open TCP connections.

netstat

9. Use the following command to see a listing of all open TCP connections in numerical order.

netstat -np tcp

10. Use the following command to see the path to the blogs.getcertifiedgetahead.com site.

tracert blogs.getcertifiedgetahead.com

11. Use the following command to observe the ARP cache

arp -a

12. Use the following command to exit the Command Prompt window.

exit

Back to SY0-501 Security+ labs.

 

error: