I've created symlink with absolute path to the directory (Blink) and have for example following tree:
$ ls -l /tmp/A total 0 lrwxrwxrwx 1 root root 6 Apr 3 12:27 Blink -> /tmp/B -rw-r--r-- 1 root root 0 Apr 3 12:27 foo $ ls -l /tmp/B total 0 -rw-r--r-- 1 root root 0 Apr 3 12:27 bar
then I go to /tmp/A and change directory to Blink:
$ cd /tmp/A $ pwd /tmp/A $ cd Blink $ pwd /tmp/A/Blink
cd .. returns me to
but if I type for example
ls ../foo I'll got error:
ls: ../foo: No such file or directory
builtin cd command resolve path as needed, but external ls consider the .. as up-level of /tmp/B and therefore cannot find foo.
What is the problem here? Can I get the foo file from /tmp/A/Blink by relative path like ../foo?