CompTIA Linux+ (XK0-004) — Question 167

A user needs to modify the IP address of a laptop. Which of the following files can be used to configure the network interface named eth0?

Answer options

Correct answer: C

Explanation

The correct file to modify the IP address for the eth0 interface is /etc/sysconfig/network-scripts/ifcfg-eth0, as it is specifically designed for network interface configurations in many Linux distributions. The other options either refer to incorrect paths or files that do not exist or are not used for this purpose.