CompTIA A+ Core 2 (220-1002) — Question 118
A technician is troubleshooting a network connectivity issue on a Linux workstation. Which of the following commands would help the technician gain information about the network settings on the machine?
Answer options
- A. chmod
- B. grep
- C. ifconfig
- D. sudo
Correct answer: C
Explanation
The correct answer, C. ifconfig, is used to display the current network configuration of a Linux machine, including active interfaces and their IP addresses. The other options, A. chmod, B. grep, and D. sudo, serve different functions such as changing file permissions, searching text, and executing commands with elevated privileges, respectively, and do not provide network settings information.