exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 152 discussion

Actual exam question from CompTIA's XK0-004
Question #: 152
Topic #: 1
[All XK0-004 Questions]

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?

  • A. /etc/sysconfig/network/interfaces.cnf
  • B. /system/config/interfaces
  • C. /etc/sysconfig/network-scripts/ifcfg-eth0
  • D. /system/networking/ifconfig
  • E. /etc/interfaces/eth0.conf
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://opensource.com/life/16/6/how-configure-networking-linux

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dan_Dan_The_Data_Center_Man
Highly Voted 3 years, 6 months ago
Correct Answer: C. /etc/sysconfig/network-scripts/ifcfg-eth0 Interface configuration files Every network interface has its own configuration file in the /etc/sysconfig/network-scripts directory. Each interface has a configuration file named ifcfg-<interface-name>X, where X is the number of the interface, starting with zero or 1 depending upon the naming convention in use; for example /etc/sysconfig/network-scripts/ifcfg-eth0 for the first Ethernet interface.
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago