LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-16-2004, 08:49 PM   #1
parannah
LQ Newbie
 
Registered: May 2004
Location: Minnesota
Posts: 12

Rep: Reputation: 0
help deleting .mp3 files


hello, i use Redhat 9.0 and i had this MP3 cd that i use in my mp3/cd player, that i moved one file from that had mp3 format songs in it, and i cant delete it. i would like to know if anyone has had this problem, or if they know how to fix it.

if you could help me this would be greatly appreciated.
thanx
 
Old 05-16-2004, 09:05 PM   #2
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
I dont really understand your question...?? You cannot remove mp3's from your hard drive?
 
Old 05-16-2004, 09:12 PM   #3
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
presuming that you have permissions for the file you should just be able to use:

rm whatever_the_file_is.mp3

or rm -rf whatever_the_file_is.mp3 if you get some complaints about the last one. this is under the assumption that the file to be deleted is on your hard drive in your current working directory. it is a bit unclear from your post where the file is and what you have done unsuccessfully to try to remove it. you will get much better responses if you give more detailed description of your problem and what steps you have taken in trying to fix it.

hope this helps.

edit for spelling

Last edited by lyceum; 05-16-2004 at 09:15 PM.
 
Old 05-16-2004, 09:38 PM   #4
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
If you moved these files as root, they are probably owned by root. Therefore you should try removing these files as the superuser (root). Be careful when deleting files as root, though.
 
Old 05-16-2004, 10:21 PM   #5
parannah
LQ Newbie
 
Registered: May 2004
Location: Minnesota
Posts: 12

Original Poster
Rep: Reputation: 0
ya i figured that out, and i deleted most of the songs, but now i have one problem. there are songs with ( and ' and i cannot remove them. i used the rm (directory), but now i cannot remove the ones with the ( or the '.



any clues

thanks for previous
 
Old 05-16-2004, 10:27 PM   #6
parannah
LQ Newbie
 
Registered: May 2004
Location: Minnesota
Posts: 12

Original Poster
Rep: Reputation: 0
the problem i was having is



i have an .mp3 cd that i use for my cd/mp3 player, i tried moving a file from the cd onto my linux drive, and it said that i could not write or edit them, and apparently i dont have permissions. i was asking my friend over the internet how to remove the files and i got most of them, but there are 2 left that have a ( and the other has 2 apostraphe's and i cannot remove the files unless those are somehow... i don't know. um... i was also wondering where i could change my administrative properties so i have permissions for everything. as you can probably tell im a windows user mostly, so i am used to having things right in front of my face. is there some command that i type in the terminal so that i can have permissions for everything?
 
Old 05-16-2004, 11:20 PM   #7
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
the command su will give you temporary root permissions, it will ask you to enter the root password, and you can act as root to get what you need done.

after entering the correct root password you should note your shell prompt change from $ to #, as long as it is # you are acting as superuser. when you are finished with whatever it was that you needed to do, type exit to get back to normal user mode. notice now that your prompt went back to $.

Last edited by lyceum; 05-16-2004 at 11:28 PM.
 
Old 05-16-2004, 11:23 PM   #8
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
an obligatory note of warning though...

only use root status when it is needed, as whatever you do as root gets done. know what i mean? you can do a lot of damage in a hurry if you dont know exactly what you are doing.
 
Old 05-16-2004, 11:59 PM   #9
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
ok to remove files with special characters, preceed the special char with "\" (i.e a backshash) (just like escape characters in C, if u know what i'm talking abt).

to remove a file named "xxx(abc)", issue the following command:

rm xxx\(abc\)
 
Old 05-17-2004, 02:13 AM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Just surround the file name in double quotes which are ". No need to get fancy at the command line for this problem.
 
Old 05-17-2004, 02:29 AM   #11
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Rep: Reputation: 15
that's ok but i think the best solution is this:
in "system" sub-menu of the "start" button (sorry for the "start", but it's only to understand better what we are talking about) there shoyld be an utility named "file manager - superuser mode" or something similar. you can use it to remove your files using a graphical interface. or you can also login in kde as root, remove your files and logout. why are we complicating our life using shells and bash when the solution is so simple!!

Matteo
 
Old 05-17-2004, 02:41 AM   #12
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Login as root to go in any window manager or desktop manager is like running Windows. If a program crashes, it is very likely the system will crash.
 
Old 05-17-2004, 04:07 AM   #13
SuSE_fan
LQ Newbie
 
Registered: Apr 2004
Location: Provo, Utah, USA
Distribution: SuSE 9.0 Professional
Posts: 19

Rep: Reputation: 0
check the permissions first

Before you try to use the "su" command, you may do this. From any terminal, change directory to where your songs are and type

ll (thats LL)

it will give you a list of files with permissions. If they are owned by root, only root can delete them. If it is the case, use SU and log in as root. Then change the names of the files using mv command. Syntax of MV command is ...

mv oldfile.mp3 newname.mp3 (make these new names without the special characters)

then use rm *.* inside the directory. Luckily our good ol' DOS *.* works here

exit root mode by typing exit.

If root does't own these files, you can still be root and delete it. But, using SU when you don't really need it is not suggested.
 
Old 05-17-2004, 04:52 AM   #14
maqish
LQ Newbie
 
Registered: Sep 2003
Location: Netherlands, Lelystad
Distribution: Slackware 9.1
Posts: 29

Rep: Reputation: 15
Removing files

Could it not be that because he tries to delete files that were copied from a cd the read only property has been set? could it could it hey could it

also i wonder why you delete the files, just because RH 9 does not include mp3 support.

when the files are read only you probably will not have the permission to delete i guess.

i just tried to delete files with read only permissions, well it's possible but not without a warning.

greets Marc
 
Old 05-17-2004, 09:43 PM   #15
parannah
LQ Newbie
 
Registered: May 2004
Location: Minnesota
Posts: 12

Original Poster
Rep: Reputation: 0
ya they were read only. and i could not delete them. so this really helps me alot.. but i set the resolution too high on my pc, and i cannot acces linux until thurs. when i plug it back into the monitor i installed it with.. i wanted to delete them because it takes up space.

thx for the help

if theres any way to solve the res problem that could help me too.
 
  


Reply


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
Deleting files in C monil Programming 4 03-13-2005 10:33 AM
Deleting files! a_priebe47 Slackware 6 10-17-2004 09:58 PM
Deleting files ShakyJake Linux - Newbie 12 05-08-2003 03:07 PM
Deleting files Tingle Linux - Newbie 4 01-16-2003 04:19 PM
Deleting contents of files. Road Linux - General 2 10-03-2002 06:02 PM


All times are GMT -5. The time now is 10:41 AM.

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