LinuxQuestions.org
Visit Jeremy's Blog.
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 06-14-2004, 02:23 PM   #1
xcheddar
LQ Newbie
 
Registered: Jun 2004
Location: Philadelphia
Posts: 4

Rep: Reputation: 0
Question on Deleting


the prolem is then i try to send this folder to the trash can StepMania-4.9-alpha20-src it comes up as an error and the error says Cannot move "/home/ryan/Desk...4.9-alpha20-src" to the trash because you do not have permissions to change it or its parent folder.
Can anyone help me i am also the only person in this computer there are no other users besides me


Thank you
 
Old 06-14-2004, 02:28 PM   #2
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
the file is probably owned by root, so you can't delete it. to see who owns it give the command
Code:
ls -l whatever_the_filename
then, if you're sure that you want to delete it and it does belong to root, you will have to su to root. enter
Code:
su
then enter the root password. now you should be able to delete it. don't forget to enter
Code:
exit
to get back to your normal user mode.

hope this helps.

Edit: if you still have problems, and really want to get rid of it, use the -f option with rm. this will force it to delete.

An obligatory word of warning: be very careful when using rm as root. if you type it it will be done. An accidental rm -rf / would effectively wipe away your root directory. not good.

Another Edit: upon rereading your post i noticed you said it was a folder. if you use the -r option with rm it makes the delete act recursively with all files and subfolders within the target folder.

Last edited by lyceum; 06-14-2004 at 02:33 PM.
 
Old 06-14-2004, 02:34 PM   #3
xcheddar
LQ Newbie
 
Registered: Jun 2004
Location: Philadelphia
Posts: 4

Original Poster
Rep: Reputation: 0
i dont know why i loged in a root b4 that and tried to delete it and i just did it again now but its till isnt working any other guess to what the problem may be?
 
Old 06-14-2004, 02:58 PM   #4
xcheddar
LQ Newbie
 
Registered: Jun 2004
Location: Philadelphia
Posts: 4

Original Poster
Rep: Reputation: 0
[root@localhost Desktop]# rm -f StepMania-4.9-alpha20-src
rm: cannot remove `StepMania-4.9-alpha20-src': Is a directory

this comes up when i try to do that

the location of the folder is on the desktop
and it will nto let me even move the folder to another directory

Also there is a pencil with a like circle with i lene through it liek a no smoking sign but with a pencil


i tried -r and this came up
[root@localhost Desktop]# rm -r StepMania-4.9-alpha20-src
rm: descend into directory `StepMania-4.9-alpha20-src'?
[root@localhost Desktop]#


Last edited by xcheddar; 06-14-2004 at 03:01 PM.
 
Old 06-14-2004, 04:56 PM   #5
silmaril8n
Member
 
Registered: May 2004
Location: Vancouver, WA
Distribution: Mint, Debian, Slackware
Posts: 123

Rep: Reputation: 15
use -rf I think. Then it won't ask for confirmation
 
  


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
Dual booting question (Deleting a Mandrake partition) Vash63 Linux - Newbie 4 08-31-2004 10:31 PM
Uber-noob question about deleting install files R00ts Linux - Newbie 8 04-01-2004 10:41 AM
Deleting module- quite short question krajzega Slackware 3 02-01-2004 03:12 PM
Question about deleting files Superdude Linux - Software 8 12-31-2003 10:02 PM
Question About deleting Source Files jbhoo Linux From Scratch 2 04-26-2002 08:36 PM


All times are GMT -5. The time now is 06:30 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