no such file or directory using "-" character
JD
jd1008 at gmail.com
Sun Aug 3 16:45:45 UTC 2014
On Sun, Aug 3, 2014 at 1:41 AM, Neil Bird <lists at fnxweb.com> wrote:
> Around about 03/08/14 08:01, Angelo Moreschini scribbled ...
>
>> I need to go inside a directory named <notebook-source>;
>> but I am not able to do it.
>
>
> An addendum to Joachim's suggestion: possibly try
>
> ls -d notebook* | od -tx1
>
> .. to look for funny alternate characters. Maybe the hyphen is some funky
> Unicode like an en-dash, depending upon how it was created.
>
> --
> [phoenix at fnx ~]# rm -f .signature
> [phoenix at fnx ~]# ls -l .signature
> ls: .signature: No such file or directory
> [phoenix at fnx ~]# exit
>
>
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
As others have suggested, you have hidden chars in the directory name.
Any of the suggestions given will help you see what those hidden chars are.
One simple method to change the name without knowing what the hidden chars are:
mv notebook* xxxxx
mv xxxxx notebook-source
Of course, assuming you "need" to keep the name as notebook-source
Now, you can
cd notebook-source
Good luck
More information about the users
mailing list