Operating System - Linux
1752681 Members
5244 Online
108789 Solutions
New Discussion юеВ

Re: -bash: cd: RESPALDOS/: No such file or

 
Manuales
Super Advisor

-bash: cd: RESPALDOS/: No such file or

Hi, could you help me in understanding why i can not access to RESPALDOS folder?

[root@serv home]# ls
admin httpd RESPALDOS samba
[root@serv home]# cd RESPALDOS/
-bash: cd: RESPALDOS/: No such file or directory
[root@ser home]# pwd
/home

[root@serv home]# ls
admin httpd RESPALDOS samba
[root@serv home]# cd RESPALDOS/
-bash: cd: RESPALDOS/: No such file or directory
[root@serv home]# pwd
/home
[root@serv home]#


thaks in advance.
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: -bash: cd: RESPALDOS/: No such file or

> [...] could you help me [...]

Not without more information, but my first
guess is that there could be some invisible
characters in that "RESPALDOS".

> [root@serv home]# ls

man ls

ls -bl

cd *E*


> [root@serv home]# cd RESPALDOS/

Why add the slash ("/")?
Dennis Handly
Acclaimed Contributor

Re: -bash: cd: RESPALDOS/: No such file or

>Steven: Why add the slash ("/")?

Perhaps the shell did that with filename completion? (A slash shouldn't hurt and you can add as many as you want. :-)
TwoProc
Honored Contributor

Re: -bash: cd: RESPALDOS/: No such file or

I'm with Steven - I think you've got junk characters in your directory name.

try this:

mv ./*RESP* ./junk
mv ./junk ./RESPALDOS

If it doesn't work, try another part of the substring, like "PALD"

mv ./*PALD* ./junk
mv ./junk ./RESPALDOS

or another example:

mv ./*SPA* ./junk
mv ./junk ./RESPALDOS

Also, just as a hint, don't create user directories all in caps; it's just bad form. And... check your /etc/password file, as you may have junk in there too, if you used a tool of most any sort that created the user and the user's home directory, and maybe parts of their default profiles at the same time.

We are the people our parents warned us about --Jimmy Buffett
Steven Schweda
Honored Contributor

Re: -bash: cd: RESPALDOS/: No such file or

> I'm with Steven - I think you've got junk
> characters in your directory name.

_I_ never said "junk".

> If it doesn't work, try another part of the
> substring, like "PALD"

Like, say. "*E*"?

> [...] don't create user directories all in
> caps; it's just bad form. [...]

Define "bad form". (Or "good form".)