Which command would accomplish to use a symbolic link to /tmp/foo.d/foo.conf?

You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf.
You don’t want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead.

Which command would accomplish that?

You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf.
You don’t want to save it there, but use a symbolic link to /tmp/foo.d/foo.conf instead.

Which command would accomplish that?

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

Explanation/Reference:
To create a symbolic link (symlink) you need to specify the -s option for the command ln.
The correct syntax for ln is
ln -s <original> <symlink>



Leave a Reply 9

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


mr_tienvu

mr_tienvu

I agree with the answer.

Raza

Raza

would you please explain this becasue right answer is “C”
= /etc/foo.conf
= /tmp/foo.d/foo.conf

answer is: “C”

Raza

Raza

original file; /etc/foo.conf
symlink file; /tmp/foo.d/foo.conf

Busindre

Busindre

A is OK,…

In this link have several questions answered wrongly, just test.

ls /etc/foo.conf
ls: cannot access ‘/etc/foo.conf’: No such file or directory

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

ls -lt /etc/foo.conf
lrwxrwxrwx 1 root root 19 Jun 26 16:35 /etc/foo.conf -> /tmp/foo.d/foo.conf

Raza

Raza

thank you so much;appreciated

Raza

Raza

Busindre;obviously here i’ve found useful question but do u have more dumps…..?Infact i’ve to go for LX-103 after a few days;so any help sh’d be much obliged

Busindre