Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a file named 'Movie ?04.cd1.avi'. I can neither open the file nor rename it. I always get "No such file or directory". I think the problem is the question mark it contains. Is there a way how to open or rename the file?
I have a file named 'Movie ?04.cd1.avi'. I can neither open the file nor rename it. I always get "No such file or directory". I think the problem is the question mark it contains. Is there a way how to open or rename the file?
Thanks.
I think like you can escape a " " (space) with "\ ", you can also escape this question mark.
I tried this but it does not work. When I type Movie and press TAB, the rest of the filename is completed with the escaped characters, but I always get "No such file or directory"
I tried this but it does not work. When I type Movie and press TAB, the rest of the filename is completed with the escaped characters, but I always get "No such file or directory"
Don't pressing TAB, you don't need to. Why would you use TAB, when you just need a few characters, a new filename, and a RETURN/ENTER. TAB completion is not really what you want, as of course, it keeps returning the last commands you gave it back to you.
Also, have you got the needed permissions to move/rename the file?
try: cp -ufv ./Mo* ./NewName
Hope I am understanding this issue correctly,
Uncle Theodore may be onto something, but his examples should work.
What type filesystem is the problem occurring on?
Sasha
Last edited by GrapefruiTgirl; 06-25-2009 at 03:22 PM.
check=value
Three different levels of pickyness can be chosen:
r[elaxed]
Upper and lower case are accepted and equivalent, long name
parts are truncated (e.g. verylongname.foobar becomes very-
long.foo), leading and embedded spaces are accepted in each
name part (name and extension).
n[ormal]
Like "relaxed", but many special characters (*, ?, <, spaces,
etc.) are rejected. This is the default.
s[trict]
Like "normal", but names may not contain long parts and special
characters that are sometimes used on Linux, but are not
accepted by MS-DOS are rejected. (+, =, spaces, etc.)
The above is a quote out of the `mount` man page; I'm not familiar with CIFS but is it possible the default option setting for this mount option is causing the problem? Maybe mounting with check=relaxed option would get around it.
Sasha
EDIT - PS, this option is for FAT, by the way; I forgot to mention
Last edited by GrapefruiTgirl; 06-25-2009 at 06:53 PM.
Reason: see EDIT
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.