Which of the following commands would accomplish this?

An administrator is experimenting with a binary in /tmp/foo.d that expects its configuration file at
/etc/foo.conf. The administrator does not want to save it there, but use a symbolic link to
/tmp/foo.d/foo.conf instead. Which of the following commands would accomplish this?

An administrator is experimenting with a binary in /tmp/foo.d that expects its configuration file at
/etc/foo.conf. The administrator does not want to save it there, but use a symbolic link to
/tmp/foo.d/foo.conf instead. Which of the following commands would accomplish this?

A.
ln -s /tmp/foo.d/foo.conf /etc/foo.conf

B.
ln /tmp/foo.d/foo.conf /etc/foo.conf

C.
ln -s /etc/foo.conf /tmp/foo.d/foo.conf

D.
ln /etc/foo.conf /tmp/foo.d/foo.conf



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Mike

Mike

C

Mike

Mike

got confused by the question, A is right

Mahoni

Mahoni

Yes, it is a little bit confusing question. The symbolic link is expected /etc/foo.conf and original file’s expected location /tmp/foo.d/foo.conf as far as I understand. so that the answer is A correct.