-
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 -[color=blue]
> /incoming-dw/incoming-cc[/color]
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 ?
-
Re: link issue
On 16 Oct, 14:50, invincible <imanuk2...@googlemail.com> wrote:[color=blue]
> 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 -
>[color=green]
> > /incoming-dw/incoming-cc[/color]
>
> 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 ?[/color]
Sorry, I mean to say should not I be in /incoming-dw/incoming-cc ?
-
Re: link issue
invincible wrote:[color=blue]
> On 16 Oct, 14:50, invincible <imanuk2...@googlemail.com> wrote:[color=green]
>> 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 -
>>[color=darkred]
>>> /incoming-dw/incoming-cc[/color]
>> 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 ?[/color]
>
> Sorry, I mean to say should not I be in /incoming-dw/incoming-cc ?[/color]
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. * - [url]http://www.spaziosystem.com/[/url]
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.
-
Re: link issue
invincible <imanuk2007@googlemail.com> writes:
[color=blue]
> Sorry, I mean to say should not I be in /incoming-dw/incoming-cc ?[/color]
Try '/bin/pwd'.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
-
Re: link issue
On 17 Oct, 04:49, Paul Pluzhnikov <ppluzhnikov-...@gmail.com> wrote:[color=blue]
> invincible <imanuk2...@googlemail.com> writes:[color=green]
> > Sorry, I mean to say should not I be in /incoming-dw/incoming-cc ?[/color]
>
> Try '/bin/pwd'.
>
> Cheers,
> --
> In order to understand recursion you must first understand recursion.
> Remove /-nsp/ for email.[/color]
Paul,
Perefect.... how does this happen ? does it mean there is a difference
between the /usr/bin/pwd and the /bin/pwd ?
ciao