Directory not displaying (strange)

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Directory not displaying (strange)
# 1  
Old 03-01-2018
Directory not displaying (strange)

Hi All.

I am facing a strange scenario

Code:
(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
# 2  
Old 03-01-2018
I would suspect some unusual permissions on the directories involved. What output do you get from the command:
Code:
ls -ld /pq1/buffer /pq1/dataCS /pq1

# 3  
Old 03-01-2018
Below is the output

Code:
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

# 4  
Old 03-01-2018
Quote:
Originally Posted by arunkumar_mca
Below is the output

Code:
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

Last edited by Aia; 03-01-2018 at 05:30 PM..
These 2 Users Gave Thanks to Aia For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Strange thing with solaris ls on nfs shared directory

I shared from linux server a dir with nfs3,solaris mount ok,and can tar files,but if i do ls or cp.. on mnt i have mount the nfs share root@solaris: mnt $ touch 2 root@solaris: mnt $ ls -lh ls: can't read ACL on .: Permission denied root@solaris: mnt $ ls 1.tar 2 root@solaris: mnt $ cp... (4 Replies)
Discussion started by: Linusolaradm1
4 Replies

2. AIX

strange on directory

I have two aix 5.3 server A and B, if I list files on server A: ls -l /x/y/* /x/y/1.out /x/y/2.out If I use ssh from server B to list: ssh A ls -l /x/y/* /x/y/3.out not found /x/y/4.out not found /x/y/1.out /x/y/2.out From server A, /x/y/3.out and /x/y/4.out looks like don't... (1 Reply)
Discussion started by: rainbow_bean
1 Replies

3. UNIX for Dummies Questions & Answers

Displaying the current working directory in prompt

Hi, I want that the prompt that is being displayed (i.e $ sign) should display always the current directory I am working in instead of that $ sign example: as we use PS1=patric and the prompt changes from $ to patric OR if we write the command PS1=`pwd` it will display the current... (5 Replies)
Discussion started by: premjotsingh
5 Replies

4. UNIX for Dummies Questions & Answers

Displaying Filesystem During df

I'm unsure about the topic title, but this is what I want to do. I have a directory, named /opt/extra and and I want it to be displayed when I issue df command. Just by using df only, not df /opt/extra. OS: Solaris 10 Current df output root@jebat10 # df -k Filesystem kbytes ... (3 Replies)
Discussion started by: Olli.Lang
3 Replies

5. UNIX for Advanced & Expert Users

strange "No such file or directory" errors on NFS volumes

we're seeing very strange "No such file or directory" errors on NFS volumes on one of our suse servers - can anyone please help? we're seeing it for both our NetApp NAS Device and one of our Solaris NFS servers too Here is what we're seeing: stg-backup:~ # cd /rmt/sge stg-backup:/rmt/sge... (3 Replies)
Discussion started by: fishsponge
3 Replies

6. Cybersecurity

Strange files keep appearing in my home directory

Hi everyone, really strange files keep appearing in my home directory. I have absolutely no idea where they come from and I'm a little concerned that they could come from some kind of malware activity or Firefox exploit. I searched Google for parts of the file names but without a result. The... (6 Replies)
Discussion started by: schallstrom
6 Replies

7. Shell Programming and Scripting

displaying 3 directory listings in 3 separate columns.

i having problems figuring out how to 'read' in 3 different directory listings and then display them on the screen into 3 separate columns. i thought i could use a 'for' loop to grab each directory and then assign a unique variable to each line 'read' in. of course, as you experts all know,... (16 Replies)
Discussion started by: mjays
16 Replies

8. UNIX for Dummies Questions & Answers

Displaying files in a directory

Dear Experts, I am new to UNIX and I have a script below and in this test case I am reading the names of the files in the present directory into a variable and then looping through each file name and displaying the name back to the screen. The problem I have is although there are 5 files in the... (4 Replies)
Discussion started by: markjohnlowe
4 Replies

9. UNIX for Dummies Questions & Answers

displaying with ls

hi, how can display year parameter also while listing files from a directory?it displyas only if last acces sis more than 1 yr i guess.can it be dispalyed using some option or some method? thanks and regards vivek.s (2 Replies)
Discussion started by: vivekshankar
2 Replies

10. UNIX for Dummies Questions & Answers

displaying directory in html

How would i in a csh script get it to display all the files in the current directory in html? (9 Replies)
Discussion started by: adel66
9 Replies
Login or Register to Ask a Question