Directory not displaying (strange)

Hi All.

I am facing a strange scenario

(c13:pq1:/pq1/buffer>) ll ../dataCS/*
ls: cannot access ../dataCS: No such file or directory
(c13:pq1:/pq1/buffer>) cd ../dataCS
(c13:pq1:/pq1/dataCS>) ll *
-rw-rw-r-- 1 pq1  pq10 Mar  1 13:43 test
(c13:pq1:/pq1/dataCS>) ll ../dataCS/*
-rw-rw-r-- 1 pq1  pq10 Mar  1 13:43 .../dataCS/test

When I do ls ../dataCS from buffer it says no file or directory. When I do the same thing on dataCS it work. I am also able to do cd to dataCS from buffer

Thanks,
Arim

I would suspect some unusual permissions on the directories involved. What output do you get from the command:

ls -ld /pq1/buffer /pq1/dataCS /pq1

Below is the output

drwxrwxrwx 19 mgr    36058 4096 Mar  1 06:43 /pq1
lrwxrwxrwx  1 mr4 pq1   23 Feb 12 10:11 /pq1/buffer -> /pcsan/pq1/buffer
drwxrwxr-x  2 mr4 pq1 4096 Mar  1 15:01 /pq1/dataCS 

You are not in /pq1/buffer . That is a symlink. When you cd into buffer you are actually in /pcsan/pq1/buffer which means that .. is /pcsan/pq1 and not /pq1/ and dataCS does not live as /pcsan/pq1/dataCS

2 Likes