Operating System - HP-UX
1753663 Members
5604 Online
108798 Solutions
New Discussion юеВ

directory not found when cd

 
SOLVED
Go to solution
VAN MECKEREN
Occasional Contributor

directory not found when cd

a user was working in a directory and he said that suddently, he can't go into this directory.
We checked and try with root, but we have exactly the same problem.
when we do ls whe can see the directory but with cd we receive a not found
thanks
11 REPLIES 11
john korterman
Honored Contributor

Re: directory not found when cd

Hi,
perhaps some garbage character has sneaked into the filename. Try listing the dir name by:
# ls -ldb
or
ls -ld | cat -v
in order to display special characters.

regards,
John K.
it would be nice if you always got a second chance
Steve Steel
Honored Contributor
Solution

Re: directory not found when cd

Hi

This will be bad characters


What does ll -d give for protection

does

cd first_few_letters* work


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Victor Fridyev
Honored Contributor

Re: directory not found when cd

Check whether the dirname is a link to a real directory. In this case, if real directory is deleted or renamed, cd to the link is problematic.

Regards
Entities are not to be multiplied beyond necessity - RTFM
VAN MECKEREN
Occasional Contributor

Re: directory not found when cd

hi,

we just tried the two commands, but we got again a not found.

thanks
john korterman
Honored Contributor

Re: directory not found when cd

Hi again
please go into the directory above the one you cannot access and execute:
# ls -b
or
# ls | cat -v
and look for the file name, or something similar, in the output.

regards,
John K.
it would be nice if you always got a second chance
Nicolas Dumeige
Esteemed Contributor

Re: directory not found when cd

Has the directory execution right ?

# chmod 400 my_dir
# cd my_dir
/usr/dt/bin/dtksh: cd: my_dir: [Permission denied]

All different, all Unix
SureshKumar_2
Valued Contributor

Re: directory not found when cd

hi

Plz check the permission

#ls -la

If u r not finding proper permission, make req. permission. (User-Group-Others)

The below shows the all permission to the user. (for checking u can use this and then change as required)

#chmod 777



ALL THE BEST
Things are very easy, when u know about it...
Steve Steel
Honored Contributor

Re: directory not found when cd

Hi

Is this directory nfs

Then you could get this


ll directory

What does it give


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
SureshKumar_2
Valued Contributor

Re: directory not found when cd

Hi

It looks like NFS/FS mount.

could u provide
*) BDF Output
*) fstab
*) mnttab
*) ls -la


This will help us to find out the root cause.
Things are very easy, when u know about it...