Files and paths · Question 12 of 12

The current directory is /var/log. Which paths refer to the file /etc/hosts?

3 answers are correct. Hard Created with AI

Show answer

Answer

  • A ../../etc/hosts
  • B /etc/hosts
  • C ../../../etc/hosts

Explanation

Two times .. lead from /var/log to the root directory. A further .. stays there, because in the root directory .. points to itself. ../etc/hosts, in contrast, would be /var/etc/hosts.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications