no such file or directory using "-" character

Joachim Backes joachim.backes at rhrk.uni-kl.de
Sun Aug 3 07:15:06 UTC 2014


On 08/03/2014 09:01 AM, Angelo Moreschini wrote:
> Hi
> 
> I need to go inside a directory named <notebook-source>; 
> but I am not able to do it.
> 
> Using the command cd /.../notebook-source  

Hi Angelo,

probably: cd ~/notebook-source,
or directly: cd notebook-source???

What do you mean by "/.../"?

I guess, the leading /.../ is the culprit.

Joachim Backes


> I get the output : 
> "no such file or directory"
> -----------
> I tried to go around to the problem using the command ls :
> 
> if I use the command : 
> <ls notebook* > (using the wildchar *)
> then I get the correct output:
> "notebook-source".
> 
> but if I use the command :
> <ls notebook-source >
> then I get (again) the message 
> " no such file or directory"
> 
> Why this happen ?
> =====
> 
> Seem that the problem is connected with the use of the character "-"
>  inside the name of the directory.... ; but I didn't know the character
> "-" is forbidden to form nane of the files or directories..
> 
> What is my problem?
> It is some thing that I dont know about the rules to form name of files
> and directories ?
> 
> Regards
> thank you
> 
> Angelo
> 
> 
> 
> 


-- 

Fedora release 20 (Heisenbug)
Kernel-3.15.8-200.fc20.x86_64


Joachim Backes <joachim.backes at rhrk.uni-kl.de>
http://www-user.rhrk.uni-kl.de/~backes


More information about the users mailing list