link issue - Aix

This is a discussion on link issue - Aix ; Im trying to create soft link to a directory.... in / I do the following ln -s /incoming-dw/incoming-cc incoming and as expected it does create the soft link in / as below lrwxrwxrwx 1 root system 34 16 Oct 13:48 ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: link issue

  1. link issue

    Im trying to create soft link to a directory....

    in / I do the following

    ln -s /incoming-dw/incoming-cc incoming

    and as expected it does create the soft link in / as below

    lrwxrwxrwx 1 root system 34 16 Oct 13:48 incoming-cc -
    > /incoming-dw/incoming-cc


    But the problem is if I try to

    cd incoming-cc
    pwd
    /incoming-cc

    How is this possible ? Should I not be in /incoming-dw-data/incoming-
    cc ?


  2. Re: link issue

    On 16 Oct, 14:50, invincible wrote:
    > Im trying to create soft link to a directory....
    >
    > in / I do the following
    >
    > ln -s /incoming-dw/incoming-cc incoming
    >
    > and as expected it does create the soft link in / as below
    >
    > lrwxrwxrwx 1 root system 34 16 Oct 13:48 incoming-cc -
    >
    > > /incoming-dw/incoming-cc

    >
    > But the problem is if I try to
    >
    > cd incoming-cc
    > pwd
    > /incoming-cc
    >
    > How is this possible ? Should I not be in /incoming-dw-data/incoming-
    > cc ?


    Sorry, I mean to say should not I be in /incoming-dw/incoming-cc ?

  3. Re: link issue

    invincible wrote:
    > On 16 Oct, 14:50, invincible wrote:
    >> Im trying to create soft link to a directory....
    >>
    >> in / I do the following
    >>
    >> ln -s /incoming-dw/incoming-cc incoming
    >>
    >> and as expected it does create the soft link in / as below
    >>
    >> lrwxrwxrwx 1 root system 34 16 Oct 13:48 incoming-cc -
    >>
    >>> /incoming-dw/incoming-cc

    >> But the problem is if I try to
    >>
    >> cd incoming-cc
    >> pwd
    >> /incoming-cc
    >>
    >> How is this possible ? Should I not be in /incoming-dw-data/incoming-
    >> cc ?

    >
    > Sorry, I mean to say should not I be in /incoming-dw/incoming-cc ?


    Guess it is a "feature" : what you type is what you get

    My reasons for this :
    If you use links to shorten paths, you get shorter path when doing pwd
    or $PWD, bypassing problems some programs have dealing with long pathnames.
    If you use links to mimic some non-existent dir, you still show up with
    the simulated path and not the effective one, which could be mis-leading.


    --
    * Alberto Varesio * - /IBM eServer Certified Specialist/
    /S&N Competence Center Application Engineer/
    * SPAZIOSYSTEM S.p.A. * - http://www.spaziosystem.com/
    Tel.: +39 011 19756013 - Cell.: 335 1811324

    Confidential notice: This message and its attachments may contain
    confidential information that is addressed solely to the above person.
    If you have received this message without authorization, delete it
    along with any other copy and inform the sender.
    Please consider your environmental impact before printing this e-mail
    ==
    Principio degli elementi persi
    Il raggio di caduta dal banco di lavoro di piccoli elementi
    varia inversamente alle loro dimensioni - e direttamente alla
    loro importanza per il completamento del lavoro intrapreso.

  4. Re: link issue

    invincible writes:

    > Sorry, I mean to say should not I be in /incoming-dw/incoming-cc ?


    Try '/bin/pwd'.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Remove /-nsp/ for email.

  5. Re: link issue

    On 17 Oct, 04:49, Paul Pluzhnikov wrote:
    > invincible writes:
    > > Sorry, I mean to say should not I be in /incoming-dw/incoming-cc ?

    >
    > Try '/bin/pwd'.
    >
    > Cheers,
    > --
    > In order to understand recursion you must first understand recursion.
    > Remove /-nsp/ for email.


    Paul,

    Perefect.... how does this happen ? does it mean there is a difference
    between the /usr/bin/pwd and the /bin/pwd ?

    ciao

+ Reply to Thread