From: MZ on 6 Jun 2010 18:53 I'm trying to remove a directory, but some of the files remain and it gives me the error "illegal byte sequence". How do I get rid of these files?
From: SS on 6 Jun 2010 19:15 On 2010-06-07 00:53:17 +0200, MZ said: > I'm trying to remove a directory, but some of the files remain and it > gives me the error "illegal byte sequence". How do I get rid of these > files? You probably tried this already, but I have to suggest this just to be on the safe side: Did you try "rm -rf *"? The -f means "force" and is a bit more brutal, but should be used with caution as it will delete just about everything (even stuff you might not want to delete, if you're not careful). I still remember the good old days when you'd see Linux-newbs asking on IRC "How do I..." and they would get the reply "Just type 'sudo rm -rf /' and enter the root password". SS
From: MZ on 6 Jun 2010 20:04 SS wrote: > On 2010-06-07 00:53:17 +0200, MZ said: > >> I'm trying to remove a directory, but some of the files remain and it >> gives me the error "illegal byte sequence". How do I get rid of these >> files? > > You probably tried this already, but I have to suggest this just to be > on the safe side: > > Did you try "rm -rf *"? The -f means "force" and is a bit more brutal, > but should be used with caution as it will delete just about everything > (even stuff you might not want to delete, if you're not careful). > > I still remember the good old days when you'd see Linux-newbs asking on > IRC "How do I..." and they would get the reply "Just type 'sudo rm -rf > /' and enter the root password". > > SS > Yeah, I've tried rm -rf and it still returns the same error.
From: Tim Daneliuk on 6 Jun 2010 20:10 On 6/6/2010 5:53 PM, MZ wrote: > I'm trying to remove a directory, but some of the files remain and it > gives me the error "illegal byte sequence". How do I get rid of these > files? I've never seen that error, but I wonder if it has something to do with the file names you're trying to get rid of. It may be that rm is interpreting them as args or something. Try this: rm -rf -- dir Otherwise these feels like some kind of Unicode silliness... -- ---------------------------------------------------------------------------- Tim Daneliuk tundra(a)tundraware.com PGP Key: http://www.tundraware.com/PGP/
From: MZ on 6 Jun 2010 20:39 Tim Daneliuk wrote: > On 6/6/2010 5:53 PM, MZ wrote: >> I'm trying to remove a directory, but some of the files remain and it >> gives me the error "illegal byte sequence". How do I get rid of these >> files? > > I've never seen that error, but I wonder if it has something to do with > the file names you're trying to get rid of. It may be that rm is interpreting > them as args or something. Try this: > > rm -rf -- dir > > Otherwise these feels like some kind of Unicode silliness... > Same error. I don't know if it's worth mentioning, but this folder was the /usr directory copied onto FreeBSD 8 from a FreeBSD 7.2 install. The specific problem directory is usr/local/lib/gcc-4.3.4/ ...
|
Next
|
Last
Pages: 1 2 3 4 5 6 Prev: OpenTTD From Gnome? Next: NYC LOCAL: Tuesday 8 June 2010 Lisp NYC Meet and NYLUG Hack Meet |