What is the name of a Windows command-line utility that can be used to display TCP/IP configuration settings?
B) ipconfig
ifconfig is a Linux command.
netstat command displays protocol statistics and current active TCP/IP network connections.
nslookup command discover the IP address or DNS record of a specific domain name. It also allows for reverse DNS lookup.
Used without any parameters, ipconfig displays the IP address, subnet mask, and default gateway for all adapters.
A) True
B) False
A) True
Which of the following answers lists an ipconfig command parameter used for displaying the full TCP/IP configuration information for all adapters?
C) /all
Which ipconfig parameter allows to view the physical address of a Network Interface Card (NIC)?
A) /all
Which of the following command-line commands in MS Windows are used for resetting the DHCP configuration settings for all adapters? (Select 2 answers)
a. ifconfig eth0 down
b. ipconfig /release
c. ifconfig eth0 up
d. ipconfig /renew
ipconfig /release
and
ipconfig /renew
A command-line utility in MS Windows used for displaying protocol statistics and current TCP/IP network connections is called:
B) netstat
tracert displays the path that a packet takes to reach its destination.
traceroute command is the Linux equivalent to tracert.
nslookup command discover the IP address or DNS record of a specific domain name. It also allows for reverse DNS lookup.
Which netstat parameter allows to display all active TCP connections and the TCP and UDP ports on which the computer is listening?
C) -a
Which of the following command-line commands in MS Windows is used to display the contents of a routing table?
D) route print
Which of the options listed below allows for execution of a command if the requested operation in the command-line interface in MS Windows requires elevation?
F) mode
B) Run as administrator
Which of the netstat utility parameters listed below allows to display the contents of the IP routing table?
A) -r
Which netstat parameter allows to display the names of applications and executable file components that are accessing the network?
A) -b
What is the name of a command-line utility used for checking the reachability of a remote host?
C) ping
A command-line network administration utility that operates by sending Internet Control Message Protocol (ICMP) echo request packets to the destination host and waiting for a reply in order to test the communication with another computer on an Internet Protocol (IP) network is called ping.
A) True
B) False
A) True
The -t switch in the MS Windows' ping utility is used for:
C) Executing the ping command in a loop
Which of the following key combinations allows to stop the execution of the current command run in Windows Command Prompt?
C) Ctrl+C
Which of the following commands in MS Windows is used to display help information related to a specific network command-line utility?
A) [command] /?
What is the correct syntax for checking the IPv6 connectivity with another network node (host1) in MS Windows? (Select 2 answers)
a. ping host1 -6
b. ping 6 host1
c. ping host1.6
d. ping -6 host1
ping host1 -6
and
ping -6 host1
Which of the command-line commands listed below allows for sending an ICMPv6 echo request to another network node (host1) in Linux OS?
D) ping6 host1
A network command-line utility in MS Windows that tracks and displays the route taken by IPv4 packets on their way to another host is called:
D) tracert
A Linux command-line utility for displaying intermediary points (routers) the IPv4 packet is passed through on its way to another network node is known as:
A) traceroute
Which of the following commands in MS Windows displays the route taken by IPv6 packets on their way to another host?
D) tracert -6
A network command-line utility in Linux that tracks and displays the route taken by IPv6 packets on their way to another network node is known as: (Select 2 answers)
a. traceroute6
b. tracert6
c. traceroute -6
d. tracert -6
traceroute6
and
traceroute -6
Which of the following answers lists a Windows command-line utility designed to be of help in troubleshooting NetBIOS name resolution problems?
C) nbtstat
Which of the nbtstat parameters allows to resolve remote host (host1) by its name?
A) nbtstat -a host1
Which of the nbtstat parameters allows to resolve remote host (192.168.1.10) by its IP address?
A) nbtstat -A 192.168.1.10
Which of the following tools allows for obtaining a domain name to IP address mapping?
C) nslookup
Which of the following network administration command-line utilities can be used for DNS queries?
D) nslookup
Which command in MS Windows displays a table consisting of IP addresses and their resolved Ethernet or Token Ring physical addresses?
D) arp -a
Which of the network command-line utilities in MS Windows combines the features of ping and tracert?
B) pathping
Displays or refreshes IP setting for network interfaces (windows OS)
H) nslookup
I) ping
B) ipconfig
Behaves similarly to tracert by pinging every hop along the route to determine relative latency.
H) nslookup
I) ping
E) pathping
Displays diagnostic information for NetBIOS over TCP/IP
H) nslookup
I) ping
E) nbtstat
Displays or configures IP settings for network interfaces (unix-like OS)
H) nslookup
I) ping
A) ifconfig
Displays the hop-by-hop path to a given host, along with the round-trip time to each hop.
H) nslookup
I) ping
A) tracert/traceroute
Test reachability and latency of a given host.
A) tracert/traceroute
B) ifconfig
C) ipconfig
D) netstat
E) nbtstat
F) pathping
H) nslookup
I) ping
I) ping
Displays a variety of network information including, active connections, routing tables, and traffic statistics.
H) nslookup
I) ping
F) netstat
A network is experiencing connectivity issues, to find out the reason, you want to check if the local computer can reached a particular server on the web. In this case, what command will be used?
B) ping
The ping command (packet internet groper) sends four packets set to a distant computer and waits for a response. If you receive a response, you know that the local computer can connect w3ith the remote host. It also shows the duration of the transaction. Ping can be used with domain names, such as Wiley.com or if available the IP address. When the command Ping localhost or ping 127.0.0.1 or ping::1 is executed, it confirms the TCP/IP is operations on the local machine.
Tracert displays the routers on its way to its destination.
The ipconfig command is used to view network settings.
The pathping command is a combination of ping and tracert capabilities.
On a Windows PC, you must work at a command prompt, which is located at C:\windows\system32. You must be at the root of the C: drive for what you will do. How will you get to C:\? Assume you would press Enter after the command/
B) cd \
You can get to the root of whatever drive you're on by typing cd \. To navigate back one directory at a time type cd .. and hit enter.
A user called you to report that his Windows computer's internet connection was down. You want to analyze his network configuration after asking a few questions to find the cause of his computer's connectivity problem. You've guided him through the steps for opening the Windows Command Prompt. What command will you have him type in order for him to read you the computer configuration?
A) ipconfig /all
ip (replaced ifconfig) is macOS version of ipconfig
You have been having network connectivity issues with one of your company's offices. You wish to identify the source of the connection's latency. What command will you enter on the Windows Command Prompt to determine the location of the latency?
C) pathping
grep is a Linux command for searching for text in a file
mv is a Linux command for moving files and folders.
tracert displays the path that a packet takes to reach its destination.
You are at a command prompt on Windows. Which command allows you to copy files and folders, as well and NTFS permissions and directory tree?
D) robocopy
The robocopy utility (Robust File Copy for Windows) has the significant advantage of being able to take a wide range of specifications while maintain NTFS permissions. the /mir switch, for example can be used to mirror an entire directory tree.
copy and xcopy are both viable commands, but neither has the compatibility the robocopy dose.
copyall is an invalid command.
You're at a command prompt in Windows. To copy directories and subdirectories but not empty folders, which command should you use?
C) xcopy /s
The xcopy command is more powerful form of the copy command. It allows you to copy directories as well as file ownership and NTFS rights.
Except for empty directories, the /s switch is used to copy directories and subdirectories.
/e Works the same as /s but empty subdirectories are included in the copy.
/a Only copies files that have the Archive attribute set.
/h Copies hidden and system files
Your at a Windows command prompt and need to setup a hard disk volume to receive data using the NTFS filesystem. Drive X should be assigned to the volume. Which command would you type at the command prompt to execute this?
D) format x: /fs:ntfs
Hard drives are formatted using the format command. The /fs: [Filesystem] switch specifies the filesystem to use while formatting the disk.
The command initialize does not exist.
A computer randomly won't read data from its hard drive. What should be done first to fix the problem?
C) Run chkdsk at a command prompt
If the hard drive has some faulty sectors, use chkdsk to scan the disk and attempt to repair them. If it does not work, the second option is to format the drive, and the third is to replace the drive. If your drive is experiencing reads/write issues, having a spare hard disk on hand is a good idea.
You're working on a Windows workstation, addressing a connection issue with a computer in another office on your campus area network. You must figure out where packets between the two are being dropped. To find out the last router that the package pass through, you would use which of the following commands?
A) tracert
tracert command displays the routers that a packet passed through and the time it took for each hop.
ipconfig /all displays the local machines current TCP/IP settings including its IP address, MAC address and default gateway.
ip is macOS equivalent of ipconfig.
By time out, the ping command just indicates that the packet is mot making the trip there and back.
You are working on a Windows command prompt. In order to make the Group Policy to take effect by refreshing them, you need to use which of the following commands?
C) gpupdate
the gpupdate quickly updates the Group Policy settings. It refreshes or modifies both local and Active Directory-based policies.
gpedit command allows users to modify group policies.
gpresult command displays the Resultant Set of Policy (RSoP) for a user or computer. RSoP is the sum of all policies affecting the target user or computer.
gprefresh command is not valid.
You're dealing with a client how has a small workgroup (peer-to-peer) network of Windows 10 PCs. A application on some of his employee computers necessitates the use of the X: drive. This drive, which is actual a shared folder on the manager's PC, must be accessible by the specified computers. What can you do to make this drive accessible to other computers as drive X:? (Choose 2).
a. On the client computer, create a folder called Drive X:, then on the manager's PC, map Drive X: to that folder.
b. On the manager's PC, ensure that each user who will connect to the manager's PC has a user account.
c. On each client computer, open File Explorer, Click This PC, then click Map network drive. Choose drive letter X, then navigate to the shared resource.
d. On the manager's PC, navigate to the shared folder, then right-click it and choose Map network drive.
On the manager's PC, ensure that each user who will connect to the manager's PC has a user account.
and
On each client computer, open File Explorer, Click This PC, then click Map network drive. Choose drive letter X, then navigate to the shared resource.
In a workgroup network, you must first guarantee that each user of the shared resource has an username and password on the manager's computer. The resource would then be shared on the manager's computer and each employees' computer would open file explorer, click This PC, then Map network drive, and follow the onscreen instruction to map drive X: to that shared resources.
In Windows 11 it is slightly different. After selecting This PC in File Explorer, click the three dots in the ribbon and then select Map network drive.
You are at a Windows command prompt. The folders you are in contains hundreds of files. You want it to just display one page of files at a time when viewing a folder listing. Which command should you use to do this?
C) dir /s
the dir command lists files and directories.
/p switch lists one page at a time.
p = page
/o:s lists the files in size order.
o:s = order size
/w switch presents information using wide format.
w = wide format
/s switch includes subdirectory entries when shown.
s = subdirectories
You're in the Windows 10 Command Prompt and you've selected Run as administrator. You want to get rid or a directory called d:files. It now contains six folders and dozens of files. Which command should you use to delete files for d:\files?
C) rmdir d:\files /s
The commands cd, md, and rd are used to modify, create and remove directories. They are abbreviated for the commands chdir, mkdir, and rmdir.
rd or rmdir command will only delete empty directories
The /s switch removes all subdirectors and files.
The /q switch will not inquire if it is OK to remove all files and subdirectories.
The del command is used to delete files.
You need to send files form your PC to a remote server. To accomplish this, you need to connect to a shared directory on the server and copy the files. Which command-line utility will enable you to perform this?
B) net
net is the utility.
net share is used to create to shared resources.
net use is used to connect to the shared resources. Administrators can create and manage user accounts using the net use command.
netstat displays which protocols are using which sockets (IP address ports).
You're at a school district, working in a computer lab full of Windows workstations, configuring an application that utilizes the computer's name to identify it on the application. What Command can you use on a workstation to find what its name is? (Choose 2).
a. ping localhost
b. clientname
c. nslookup
d. hostname
ping localhost and hostname
On a windows device, you are working at the command prompt, on the C: drive. Now, you are tasked with creating a directory named files of the D: drive. You will have to type in which of the following syntax to finish the task?
A) md d:\files
On a windows PC, you must start at a command prompt, which is located at C:\windows\system32. You must work on the second partition, which is named drive D:. How could you navigate to Drive D:? Assume you hit the Enter button after the command.
C) D:
To switch to a different drive, type the drive letter followed by a colon.
You are at a command prompt on a Windows PC, at C:\, and you need to navigate to C:\Windows\system32. Which of the following commands will bring you there? Assume you hit the Enter key after the line. (Choose 2).
a. cd system32 windows
b. cd C:\windows\system32
c. cd windows\system32
d. \windows cd system32
cd C:\windows\system32
and
cd windows\system32
You do not need to provide the drive letter to change to a directory on the C: drive b/c you are currently on it.
If you are on a different drive letter you need to include the drive letter you need to go to followed by the path to the folder.
One dot . shows you what folder you are currently in.
Two dots .. shows you the parent folder. The folder above you.
Use .. after CD to move from child directory to its parent directory
You've replaced a failed hard drive and now need to configure the now drive for data storage. Which utility are you going to utilizer first?
A) diskpart
The diskpart utility allows the user to view and manage partitions on hard disks. user must have admin privileges to run diskpart.
When a partition is created, the format command is used to configure the file systemon the new disk.
The chkdsk command checks the hard drive for errors.
The gpupdate command makes Group Policy updates take effect immediately.
You are at a command prompt on Windows. You suspect that some Windows system files are corrupted. What command should you use to scan for and repair corrupted system files?
D) sfc /scannow
The /scannow option scans and repairs the file system.
The /scanfile only check a single file.
The /verifyonly examines the integrity of the protected system files but does not attempt to fix them.
The /verifyfile option is used to check the integrity of a specified file.
You are at a Windows command prompt in the D:sers folder. You want to copy the D:sers\jdoe folder to the D:\files folder using the copy command. What is TRUE about this situation?
D) You can't use the copy command to perform this task
The copy command creates a copy of a file in a different location. It cannot be used to copy folders. The xcopy command is used to copy a folder.
You have a new hard drive installed in your Windows desktop, which needs partitioning the drive and formatting the volumes. Which of the following tool would be used in this case? (Choose 2).
a. perfmon.msc
b. diskpart
c. diskmgmt.msc
d. Services.msc
diskpart
and
diskmgmt.msc
You're using a command prompt on a Windows computer and need to see a list of files in the directory you're in. Which command will you enter?
A) dir
The dir command displays a list of all the files and folders in the direcotry you are working in, together with the date they were created.
ls is the Linux command to display information about the files in the current working directory.
pwd is the Linux command to print the full path to the working directory.
grep is the Linux command to search for files that match a pattern you specify.
You are at a command prompt on Windows. A remote Windows workstation named "advertising4" is acting strangely and must be shut down and restarted. What is the correct syntax for terminating this remote system?
C) shutdown /r /m \\advertising4
/r switch stands for restart
/s switch stands for shutdown
/c switch stands for comment
/m <computer name> specifies the target computer. (remote computer)
You think there might be a problem with the system files since a Windows workstation won't properly boot. Which utility can inspect and fix corrupt Windows system files?
A) Sfc
You're fixing a computer and want to know which parts TCP is connect to and w3hat IP addresses those connections are using. What command-line utility can you use to view network interface statistics?
B) netstat
The netstat command-line utility displays statistics on the network interfaces that have been installed.
nbtstat is an invalid command.
You open the command prompt in Windows, and are in the D:sers directory. Now, you need to copy all 20 files ending with .docx into the D:/files directory. Regarding this situation, which of the4 following statements is correct?
D) You can use the command copy *.docx d:\files
The copy command duplicates a file at a different location.
Use the move command to copy a file and then remove it from its original location.
You're using a Windows PC and have the Command Prompt open. You suspect that a user is improperly accessing files in the docs shared folder. On the Windows computer, the D:serfiles folder is shared as docs. Which command will block the sharing of this folder immediately?
A) net share docs /delete
The net share command is used to share and stop sharing folders on a network. To share a folder, use the syntax net share =:. Use net share /delete to cancel sharing. Must run as administrator to use net command.
You're debugging a computer that can't resolve domain names to the IP addresses. What command-line utility an help determine which DNS server the device uses?
D) nslookup
You're at a Windows command prompt and need to instantly add aa user named student. You will use which of the following commands?
A) net user student * /add
The correct syntax is: net user <username> [password | * ] /add [options] [/domain].
In this example the username is student and the * replacing the password instructs the system to prompt you for a password. If no domain is provided, the command assumes the user has been added to the local computer. When you run this command the named user will appear in the Control Panel's Users utility.
Author
dior
ID
361151
Card Set
Windows Command Line Identify the command by the description