Re: Strange symbolic link behaviour?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 7/5/11, Eric B. <ebenze@xxxxxxxxxxx> wrote:
> The strange behaviour here is when listing the parent directory (..).
> In this case, ls .. is listing the contents of Mail/ directory - not
> /home/eric.
>
> In the past, I always recall being able to use the parent identified
> (..) to move up one level in the directory structure whether in a
> symlink or not.  In this case, I would have expected ls .. to list the
> contents of /home/eric - not /home/eric/Mail.

I believe it's normal. If I'm not mistaken, cd works based on the
working path i.e. /home/eric/test so cd .. goes to /home/eric

However ls works by reading the .. inode of the directory you're in,
which will always point to the real parent /home/eric/Mail no matter
how you got to that directory.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux