System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

I am not able to cd into directory "New Folder" in HP-UX 11.00

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

I am not able to cd into directory "New Folder" in HP-UX 11.00

Hi

I am using HP-UX 11.00.

I am not able to open a folder "New Folder".

Ex:

root@lgapps:/emd/home > ll -d New*
drwxr-xr-- 2 4ep7i8 dd 96 May 28 12:01 New Folder

root@lgapps:/emd/home > cd New Folder/
su: cd: The specified substitution is not valid for this command.


Actually we have shared "/emd/home" thru samba.

So the users are creating folders in this name.


Note : I am able to open from windows.

But i am not able to open from HP-UX 11.00 server.

How to solve this.
8 REPLIES
Sunny123_1
Esteemed Contributor

Re: I am not able to cd into directory "New Folder" in HP-UX 11.00

Hi

Check directory permissions.

Regards
Sunny
Kenan Erdey
Honored Contributor
Solution

Re: I am not able to cd into directory "New Folder" in HP-UX 11.00

hi,

try cd "New Folder"
Computers have lots of memory but no imagination
James R. Ferguson
Acclaimed Contributor

Re: I am not able to cd into directory "New Folder" in HP-UX 11.00

Hi:

You shot your own fooT! One of the dumbest things Windows does is to allow spaces in file names!!!

You have made your life miserable by creating a directory with spaces in its name.

And, by the way, it's a _directory_ NOT a _folder_ in our world!

I suggest you remove the directory and recreate it without spaces:

# rmdir "New Folder"

Regards!

...JRF...
R.K. #
Honored Contributor

Re: I am not able to cd into directory "New Folder" in HP-UX 11.00

Hi Senthil,

Thats what I believe, the between 'New' and 'Folder'.
Once I too did the same in Linux and wondered for hours about what's wrong. !!

As said above, delete or rename it. (Use double quotes to do this).
And always use underscores between words.

Regds,
R.K.
Don't fix what ain't broke
johnsonpk
Honored Contributor

Re: I am not able to cd into directory "New Folder" in HP-UX 11.00

Hi Senthil,

Try this

#cd New\ Folder

New\(give space)Folder

Regards
Johnson
Sunny123_1
Esteemed Contributor

Re: I am not able to cd into directory "New Folder" in HP-UX 11.00

Hi

You can also rename it by following
procedure.

To find inode no:

ls -i

then rename it by following command
find . -xdev -inum -exec mv {} \;

Hope this will help.

Regards
Sunny
Dennis Handly
Acclaimed Contributor

Re: I am not able to cd into directory "New Folder" in HP-UX 11.00

>JRF: I suggest you remove the directory and recreate it without spaces:

Shouldn't you let senthil recover the files there first? ;-)
You would want to use mv to at least give it a name to check:
mv "New Folder" New_Directory

(I also fixed the terminology. ;-)
James R. Ferguson
Acclaimed Contributor

Re: I am not able to cd into directory "New Folder" in HP-UX 11.00

Hi:
> Dennis >JRF: I suggest you remove the directory and recreate it without spaces: Shouldn't you let senthil recover the files there first? ;-)

Sure, but of course he won't be able to use 'rmdir' unless the directory is empty, so if not, I assumed (bad thing) that he would handle the entities therein :-))

Regards!

...JRF...