Operating System Network Command Line Tools Flashcards

CompTIA A+ 220-1102 Exam Criteria

1
Q

I need to find out the Internet Protocol configuration information what command line tool should I use?

A

Ipconig for default info or details info including DHCP settings (ipconifg /all)

Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings. Used without parameters, ipconfig displays Internet Protocol version 4 (IPv4) and IPv6 addresses, subnet mask, and default gateway for all adapters.

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

How can I release Ipv4 or IPv6 address using ipconfig command line tool?

A

ipconfig /release
ipconifg /release6

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

how can I renew IPv4 or IPv6 using the ipconfig address command tool?

A

ipconfig /renew
ipconifg /renew6

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

How can I flush DNS using ipconfig?

A

ipconifg /flushdns - purges the DNS resolver cache

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

What tool should I use if i want to register a DNS?

A

ipconifg /registerdns - Resreshes all DHCP leases and re-registers DNS names.

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

how do I know if I have a new DNS registered to the ip configuration?

A

ipconfig /displaydns

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

How can I test end-to-end connectivity?

A

ping (ip address)

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

What address can you use for loop back address, to verify the network adapter is working properly?

A

ping 127.0.0.1

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

How can I test name resolution (FQDN) connection?

A

ping NTDLAP0347 can find in System> About: Device Name

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

What does the nslookup command line do?

A

Nslookup is the name of a program that lets users enter a host name and find out the corresponding IP address or domain name system (DNS) record?

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

How can I find the the DNS server for a FQDN?

A

nslookup (FQDNS)

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

How can I identify computer hostname?

A

hostname

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

What does the netstat command utilizes?

A

The netstat command generates displays that show network status and protocol statistics. You can display the status of TCP and UDP endpoints in table format, routing table information, and interface information.

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

what does netstat -a command line utilizes?

A

Displays all current connections and listening ports.

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

What does the net user command line utilizes?

A

The command Net User allows you to manage your local and even your domain users from the command line. It’s mainly used to quickly add, delete or disable user accounts from the command line. But it can do more than just that. The tool can be used in both command prompt and PowerShell.

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

How can you create a new user utilizing net user command tool?

A

administrator file path> net user username password

you can also delete files username [/DELETE] or from domain [/DOMAIN]
You can also add user via network domain: username {password | *} /ADD [options] [/DOMAIN]

17
Q

What does the net use command line utilizes?

A

The net use command is a Command Prompt command used to connect to, remove, and configure connections to shared resources, like mapped drives and network printers.

18
Q

show an example where you can map the drive letter z to shared folder to sharedTest1, from device named User1?

A

net use: Z:\User1 (or IP address) \sharedTest1

you can use * to assign a drive letter automatically that is not in use

eg.

net use: *\User1 (or Ip address)\SharedTest1

you can also use persistent yes to continually connect to the shared folder after reboot eg:

devicename | *] [\computername\sharename[\volume] [password | *]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]

19
Q

What does the command line gpresult do?

A

GPResult is a command-line utility that displays a user’s and computer’s Resultant Set of Policy (RSOP) information. To put it another way, it generates a report that shows which group policy objects have been applied to a user and computer.

20
Q

How can you show the summary of Result Set of Policy (RSOP) information on the command line?

A

gpresult /r

21
Q

what does the command line gpupdate do?

A

The gpupdate command is used to enforce a policy update and it takes into account only the changes in the existing Group Policies or new Group Policies.

22
Q

How can instantly pull down group policy update on the command line?

A

gpupdate /force

23
Q

What does the pathping command line utilize?

A

It is commonly used to troubleshoot network issues, particularly the ones related to latency and network performance. It is considered an alternative to tracert and it combines ping and tracert commands

you can also use

-q to the number of echoes that is sent out to each router in the path.

-n to prevent resolving intermediate router to their names (DNS)

-p to reduce the wait time for the next ping to be sent out in milliseconds (usually increase this amount if you want to reduce congestions on the network)

24
Q

I want to check latency on ip address 8.8.8.8 with 10 echoes to each router with no resolving dns on intermediate routers and a wait time of 5 milliseconds for each consecutive ping in the network, display this using the command line tool?

A

pathiping -q 10 -n -p 5

25
Q

What does the tracert command line do?

A

identifies the route a packet takes between your computer and the destination computer specified in the command.

26
Q

how can I trace packet data through source destination date youtube?

A

tracert youtube.com

other functions?

-d Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for
target.
-j host-list Loose source route along host-list (IPv4-only).
-w timeout Wait timeout milliseconds for each reply.

27
Q

I want to trace maximum hops of 15 with a timeout reply of 20 milliseconds to the ip destination youtube.com

A

tracert -h 20 -w 15 youtube.com.au

28
Q

Whats the difference of Tracert vs Pathping?

A

Tracert gets you a list of all the routers between the source and the destination and the time between the individual hops. Pathping brings you all the details that you get with tracert but also includes details like latency and packet loss between all the routers and the source computer.