LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rogue files won't delete (https://www.linuxquestions.org/questions/linux-newbie-8/rogue-files-wont-delete-178715/)

mrmike 05-06-2004 06:07 PM

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

Technoslave 05-06-2004 09:19 PM

ls -l the file and post up what it gives you.

mrmike 05-06-2004 11:38 PM

My apologies...

Code:

[root@dizneland music]# ls -l I*
-rwxr--r--    1 mbrache  mbrache  4210730 Sep  9  2003 Ibrahim Ferrer - Como Fue.mp3
-rwxr--r--    1 mbrache  mbrache  5511210 Sep  9  2003 Ibrahim Ferrer - Qu? Bueno Baila Usted.mp3
[root@dizneland music]#

I've managed to chmod as root to 777, but still cannot do anything with the file.

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...

Grasshopper 05-06-2004 11:55 PM

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.