LPIC-1 Exam 102 (Linux Administrator) — Question 7

Which of the following lines are valid in the file /etc/hosts? (Choose TWO correct answers.)

Answer options

Correct answer: A, C

Explanation

The correct answers A and C are valid entries as they follow the required format for the /etc/hosts file, with proper IP addresses and hostnames. Options B and D are incorrect due to the presence of spaces or commas that disrupt the format. Option E is also invalid because it contains an improperly formatted IPv4 address (2003.0.113.15).