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?

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.
In -s /etc/foo.conf /tmp/foo.d/foo.conf

C.
In /tmp/foo.d/foo.conf /etc/foo.conf

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

Explanation:
Correct Answer is C. The In command is used to create the link. There are two types of link a. Soft link b. Hard link. a. Soft link Etan create for directory also, can span multiple partitions but available until and unless Original Files remain.

Syntax for Soft link In-s original file linkfile b. Hard link Q)ne separate Physical File, can’t create for directory, can’t span multiple file but remains the link file if original file removed.
Syntax for Hard link In original file linkfile



Leave a Reply 5

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


Pat

Pat

The question asks you for a symlink so A would be a pretty good choice, eh?

dude

dude

A is the correct answer!

Tom Williams

Tom Williams

I think A would be better in this situation.

Raza

Raza

B is the right answer in this question;
ln -s
original file; /etc/foo.conf
symlink; tmp/foo.d/foo.conf

Raza

Raza

ln -s origninal-file symlink