Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 05-06-2004, 07:07 PM   #1
LQ Newbie
Registered: Apr 2004
Posts: 15

Rep: Reputation: 0
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!


Old 05-06-2004, 10:19 PM   #2
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
ls -l the file and post up what it gives you.
Old 05-07-2004, 12:38 AM   #3
LQ Newbie
Registered: Apr 2004
Posts: 15

Original Poster
Rep: Reputation: 0
My apologies...

[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!"


For example, how would I rename these files?

P.S. I think the "?" has something to do with the problem...

Last edited by mrmike; 05-07-2004 at 12:39 AM.
Old 05-07-2004, 12:55 AM   #4
Registered: Nov 2003
Location: CT, USA
Posts: 55

Rep: Reputation: 15
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:

Last edited by Grasshopper; 05-07-2004 at 12:59 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete files that won't delete? di11rod Linux - Security 7 10-19-2005 10:14 PM
delete files suguname Linux - Newbie 3 07-05-2005 09:49 AM
how can I do to delete these files? tuzhiyong Linux - Software 2 12-02-2004 12:01 PM
Delete Files imsajjadali Red Hat 15 07-23-2004 02:12 PM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 02:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration