PrepAway - Latest Free Exam Questions & Answers

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?

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>

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

  1. Busindre says:

    NO!, A is OK

    original file (that exists); /tmp/foo.d/foo.conf
    symlink file (does not exist and therefore must be created as a link); /etc/foo.conf

    Link: /etc/foo.conf -> /tmp/foo.d/foo.conf




    0



    0
  2. Busindre says:

    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




    0



    0
      1. Raza says:

        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




        0



        0
  3. Busindre says:

Leave a Reply