PCLinuxOS-Forums
News: Wishing everyone a Happy 2012
 
*
Welcome, Guest. Please login or register. February 12, 2012, 04:29:59 AM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: [Solved] Illegal Characters in Directory Name  (Read 1034 times)
dobbs
Sr. Member
****
Offline Offline

Posts: 328



« on: February 06, 2010, 05:19:30 PM »

I'm having a heck of a time with this one. I downloaded a zipfile on the web. I unzipped the file and the directory that was created contained an accent in one of the names. I think the word is February, but it is spelled F?vrier. I believe the ? is an accented e. I can't open,rename, or delete the directory. The message I get is no such directory with that name. I've tried it in Krusader ,Dolphin,Konqueror and the command line with rm and mv. I've tried as user and root. It seems that I've dealt with this before, but I can't remember my remedy. I'm using KDE4.... :-(

Logged

Began the journey in 2006
jaydot
Administrator
Super Villain
*****
Offline Offline

Posts: 14824


there is no limitation on imagination


« Reply #1 on: February 06, 2010, 05:29:10 PM »

you should be able to right click and rename to something innocuous in your file manager of choice.
Logged

PCLinuxOS  Get it?  Got it?  Good!!   Cool

We don't have any millionare angels or corporate backers paying the bills here, PLEASE DONATE.
http://pclinuxos.com/?page_id=7
dobbs
Sr. Member
****
Offline Offline

Posts: 328



« Reply #2 on: February 06, 2010, 05:38:41 PM »

Thanks, but this is what I get when I try to rename it...



folder does not exist
Logged

Began the journey in 2006
Texstar
Administrator
Super Villain
*****
Offline Offline

Posts: 11861



« Reply #3 on: February 06, 2010, 05:53:13 PM »

Can you remove it in the console with rm -rf "name of stupid file" using the quote option?

Logged

Follow the development of PCLinuxOS on Twitter
Help fund the PCLinuxOS project!

"I'm not so good on advice, can I interest you in a sarcastic reply?"
dobbs
Sr. Member
****
Offline Offline

Posts: 328



« Reply #4 on: February 06, 2010, 06:02:30 PM »

It's a directory so rm doesn't work. I tried rmdir, but it also didn't work.
With rmdir, I get "invalid option -r" and/or "invalid option -f" as error messages.
When using rmdir without any options I get "no such file or directory"... :-(
Logged

Began the journey in 2006
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9047


----IOFLU----


« Reply #5 on: February 06, 2010, 06:16:33 PM »

It's a directory so rm doesn't work. I tried rmdir, but it also didn't work.
With rmdir, I get "invalid option -r" and/or "invalid option -f" as error messages.
When using rmdir without any options I get "no such file or directory"... :-(

The command rm -rf "<directory name>" works for me, removing the directory, sub directories and any included files. Also, rm -rf *<part of directory name>* works the same way.

Try;

rm -rf *vrier*
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
Animal
Hero Member
*****
Offline Offline

Posts: 869



« Reply #6 on: February 06, 2010, 06:46:37 PM »

if it wont delete the folder because you cant type the filename because of the non standard character, try temporarily moving the non effected files and folders out of that directory into another folder, then just just do a rm -rf "*" wildcard.. that way it will delete any file or folders that are effected by the non standard character. just an idea..
Logged

"Sight is about what lies right in front of us. Vision is what lies ahead.”
Bald Brick
Hero Member
*****
Offline Offline

Posts: 4720


I'm going South


« Reply #7 on: February 06, 2010, 06:58:01 PM »

Try simply using the wildcard ? instead of the troublesome character:
Code:
mv f?vrier fevrier

You might even try
Code:
mv f?vrier février

(é is not an illegal character; the reason it gives you trouble is probably that your system has been set up to use UTF-8 while the name of the directory was created with another encoding.)
Logged

If it ain't broke
hit harder!
dobbs
Sr. Member
****
Offline Offline

Posts: 328



« Reply #8 on: February 06, 2010, 07:24:43 PM »

@old-polack
Thanks for your reply rm -rf *vrier* worked perfectly. I'm not sure why others didn't work. But thanks to everyone for your replies. This is the friendliest and most responsive forum I've been a member of..... Cheesy

mv *vrier fevrier also worked.. Thanks to all...Cheesy
Logged

Began the journey in 2006
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9047


----IOFLU----


« Reply #9 on: February 06, 2010, 07:37:02 PM »

@old-polack
Thanks for your reply rm -rf *vrier* worked perfectly. I'm not sure why others didn't work. But thanks to everyone for your replies. This is the friendliest and most responsive forum I've been a member of..... Cheesy

I've run into the same sort of problem myself, and it's very annoying until you figure it out. Glad it worked for you too. Grin Wink
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
YouCanToo
Hero Member
*****
Offline Offline

Posts: 3893


Location: Lebanon, OR., USA


WWW
« Reply #10 on: February 06, 2010, 09:52:32 PM »

I'm having a heck of a time with this one. I downloaded a zipfile on the web. I unzipped the file and the directory that was created contained an accent in one of the names. I think the word is February, but it is spelled F?vrier. I believe the ? is an accented e. I can't open,rename, or delete the directory. The message I get is no such directory with that name. I've tried it in Krusader ,Dolphin,Konqueror and the command line with rm and mv. I've tried as user and root. It seems that I've dealt with this before, but I can't remember my remedy. I'm using KDE4.... :-(




I clicked on the attached image and it took me to a page and than ended up with the following (See Attached)  If at that point you click on Cancel or ok it takes you to a page and tells you your were infected by many different viruses .  Damn it I hate pages that do this.

[attachment deleted by admin]
Logged





Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9047


----IOFLU----


« Reply #11 on: February 06, 2010, 10:03:32 PM »

YouCanToo:

If you click the Important Info link above the image, you'll also see this.

Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
margarita
Sr. Member
****
Offline Offline

Posts: 429


Margarita is a place, not my name


« Reply #12 on: February 06, 2010, 10:37:54 PM »

hola amigos,

I have a similar problem with files.

Quote
Fred und Rolf - �ber uns die Wolken.mp3
Peter Fr�hlich - Ich bin immer f�r dich da.mp3
...

konqueror and krusada - "The file or ... not exist." I can't rename or move.
pcman - no problems, I can rename and move
mc from konsole no problems

I'm sure that the problems exist only since KDE4
and now  Huh


saludos
Logged

2.6.38.8-pclos3.pae.bsf - KDE: 4.6.5 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 4 GB - GForce 8400 GS
Animal
Hero Member
*****
Offline Offline

Posts: 869



« Reply #13 on: February 06, 2010, 10:45:23 PM »

Quote
I'm sure that the problems exist only since KDE4

KDE 4 has nothing to do with this, this is a character set issue. Not a DE issue.
Logged

"Sight is about what lies right in front of us. Vision is what lies ahead.”
margarita
Sr. Member
****
Offline Offline

Posts: 429


Margarita is a place, not my name


« Reply #14 on: February 06, 2010, 11:21:49 PM »

Quote
I'm sure that the problems exist only since KDE4

KDE 4 has nothing to do with this, this is a character set issue. Not a DE issue.

I previously thought too
BUT
Why the error occurs after upgrading to KDE 4?
Why the error occurs only with KDE applications? (konqueror and krusader)
Why work pcman?
Logged

2.6.38.8-pclos3.pae.bsf - KDE: 4.6.5 Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz - RAM: 4 GB - GForce 8400 GS
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM