rogue files won't delete
Hello all...
We'll this is my first post here... I figure this seems like a goofy question, but I'm at my wit's end trying to figure this out. Background: NooB to Linux (RH9) and set up a RH9 box to run as a file server to a couple WinXP boxes. File sharing works great after a little fumbling around ~ eventually transferred all my files (i.e. mp3's, etc) to new file server. After the transfer, I have found 1 or 2 mp3's that have their permissions locked in an odd state. They have (on KDE) the locked icon out front and every time I try to modify, move or delete the file as root, I get a permissions error. Any ideas? Boy, never thought I'd be on this end of a Noobie post! Thx, MrMike |
ls -l the file and post up what it gives you.
|
My apologies...
Code:
[root@dizneland music]# ls -l I* Okay, here's the big dumb question -- how do I reference a file like this with spaces in the file name in the command line? Naturally, any command I type in followed by the whole file name (including spaces) produce a nice long repeating message of (figuratively) "THAT DOESN'T WORK, YOU FOOL!" Haha.... For example, how would I rename these files? P.S. I think the "?" has something to do with the problem... |
As far as referencing files that have spaces in them from the command line:
Immediately before the space add a \ to the end of the previous character string in the filename. Ex: referencing your file named "Ibrahim Ferrer - Como Fue.mp3" (without quotation marks) it would be referenced as "Ibrahim\ Ferrer\ -\ Como\ Fue.mp3" (without quotation marks again) A very useful tool to use from the command line is the Tab key. If you're not sure how to add the appropriate slashes and so forth to a filename (or to lazy to type out the whole filename - my personal favorite) just enter enough characters to differentiate it from other files in the directory, and press the Tab key. Ex: to reference your file type in Ibrahim\ Ferrer\ -\ C<Tab> ( where <Tab> means press the tab key) and it should automatically enter the complete the file name for you. There's lots more handy uses of the Tab key so feel free to use it excessively ;) A quick link on the Tab key: http://www.tuxfiles.org/linuxhelp/tabtrick.html |
All times are GMT -5. The time now is 12:10 AM. |