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 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
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
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 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".
Probably, "notebook-source" contains ome or more space chars at the end, and you do not see then.
Try this: ls notebook* >x and then check the file "x" for space chars, or use the tr command: ls notebook*|tr " " "<some no space char>"
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
On 08/03/2014 09:26 AM, Joachim Backes wrote:
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 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".
Probably, "notebook-source" contains ome or more space chars at the end, and you do not see then.
Sorry, I meant:
Try this: ls -d notebook* >x and then check the file "x" for space chars, or use the tr command: ls -d notebook*|tr " " "<some no space char>"
Joachim Backes
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.
On Sun, Aug 3, 2014 at 1:41 AM, Neil Bird lists@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@fnx ~]# rm -f .signature [phoenix@fnx ~]# ls -l .signature ls: .signature: No such file or directory [phoenix@fnx ~]# exit
users mailing list users@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
On 08/03/2014 02: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 I get the output : "no such file or directory"
"cd /.../" is not legal.
in using "/" you specify the root path. in using "..." that is an illegal directory designation.
the 1st is a given rule of indication origin of a path.
entering just "..." as a directory designation gives you;
]$ cd ... bash: cd: ...: No such file or directory ]$
understand?
On 08/03/2014 01:25 PM, g wrote:
"cd /.../" is not legal.
I don't think that the OP actually used that; he was just using as a shorthand for an unspecified directory.
]$ cd ... bash: cd: ...: No such file or directory ]$
Not always. ... is a valid name for a file or directory and I'm told that there was a time that games used it as a hidden directory under the directory they were installed in to stash score files. I've never used it as a file name, but there was a time when I had ~/... as a directory, "just because." In fact, you could easily store your help files under ~/...---... if you really wanted to be silly.
On Sun, 2014-08-03 at 15:25 -0500, g wrote:
"cd /.../" is not legal.
It's perfectly legal. Whether it means anything or not depends on the existence or otherwise of a directory called "/..." (the closing '/' is ignored). The only system-reserved names are '/', '.' and '..'. Anything else is legal, including <space> and <carriage-return> (though you may have difficulty using them.
poc
On 08/03/2014 04:27 PM, Patrick O'Callaghan wrote:
On Sun, 2014-08-03 at 15:25 -0500, g wrote:
"cd /.../" is not legal.
It's perfectly legal. Whether it means anything or not depends on the existence or otherwise of a directory called "/..." (the closing '/' is ignored). The only system-reserved names are '/', '.' and '..'. Anything else is legal, including <space> and <carriage-return> (though you may have difficulty using them.
you and Joe Z are most correct 'el chemo brain' was not working working when i ran;
]$ echo>... ]$ ls
where as;
]$ ls -a . .. ...
works.
thank you both for enlightening 'el chemo'. it should stick this time.