Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th February 2006, 07:40 PM
thugpoet22's Avatar
thugpoet22 Offline
Registered User
 
Join Date: May 2005
Posts: 193
How do i delete this file

i have added a screen shot of the folder that i want to delete, its already moved to my trash but i would like to delete it completly off my system. Its messing up my trash can icon, i want to view new icons for my trash can but the file thats in there has it set to be full,

This is what it says when i try to delete it

/home/thugpoet22/...rink/License.txt" cannot be deleted because you do not have permissions to modify its parent folder.

how can i gain permission, is there a way to become root and delete that file from within my trash can. If anybody has any ideas please post. Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	dvd shrink.png
Views:	95
Size:	438.7 KB
ID:	7241  
__________________
We're all born with ignorance but its our own choice to die with stupidity
Reply With Quote
  #2  
Old 4th February 2006, 08:04 PM
lazlow Offline
Registered User
 
Join Date: Aug 2005
Posts: 3,172
Log in as SU and delete.

Lazlow
Reply With Quote
  #3  
Old 4th February 2006, 10:08 PM
creiter Offline
Registered User
 
Join Date: May 2004
Location: Tirol / Austria / Europe
Age: 29
Posts: 27
Hi!

Can you tell me where i can get your cool wallpaper?

Thanks,
chris
Reply With Quote
  #4  
Old 4th February 2006, 11:17 PM
thugpoet22's Avatar
thugpoet22 Offline
Registered User
 
Join Date: May 2005
Posts: 193
i know you have to be the root user, how do you do that, i've never logged in as a root user. Its not the same as su in terminal and then going to the trash can and deleting it that way, there must be a way to use the command line to do this. any suggestions.

I got that wall paper from http://www.gnome-look.org/

great place if your looking to make your desktop look unique
__________________
We're all born with ignorance but its our own choice to die with stupidity
Reply With Quote
  #5  
Old 5th February 2006, 12:50 AM
lazlow Offline
Registered User
 
Join Date: Aug 2005
Posts: 3,172
Ok, here we go. fred=whatever your login id
In a terminal
su - (space between u and - )
(enter password)
cd .. (space between d and ..)
cd home
cd fred
cd .Trash (capital T)
ls -a (lists hidden files)
rm (whatever has to be deleted)
(may ask for confirmation)
ls -a (make sure it is gone)
exit (leave su)
exit (leave terminal)

Sorry I did not get back sooner.

Lazlow
Reply With Quote
  #6  
Old 5th February 2006, 01:04 AM
thugpoet22's Avatar
thugpoet22 Offline
Registered User
 
Join Date: May 2005
Posts: 193
[thugpoet22@localhost .Trash]$ ls -a
. .. wine
[thugpoet22@localhost .Trash]$ rm wine
rm: cannot remove `wine': Is a directory
[thugpoet22@localhost .Trash]$ su
Password:
[root@localhost .Trash]# remove wine
bash: remove: command not found
[root@localhost .Trash]# rm wine
rm: cannot remove directory `wine': Is a directory
[root@localhost .Trash]# ls -a
. .. wine
[root@localhost .Trash]# rm wine
rm: cannot remove directory `wine': Is a directory
[root@localhost .Trash]#

this is what i got.

See i was working with Wine and dvd shrink and it messed up on me, so i decided to just install a new one but i first deleted the whole directory. Any suggestions
__________________
We're all born with ignorance but its our own choice to die with stupidity
Reply With Quote
  #7  
Old 5th February 2006, 01:10 AM
lazlow Offline
Registered User
 
Join Date: Aug 2005
Posts: 3,172
for directories use rmdir
for files us rm

Lazlow
Reply With Quote
  #8  
Old 5th February 2006, 01:11 AM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862
You forgot the - after su. So it's not su, it's su - This gives you root w/roots environment).
Then, cd /home/fred/.Trash and everything else lazlow said...

To clarify, su(space)-
edit
Sorry, I didn't notice the "directory"

Last edited by u-noneinc-s; 5th February 2006 at 01:13 AM. Reason: missed comment
Reply With Quote
  #9  
Old 5th February 2006, 01:15 AM
u-noneinc-s's Avatar
u-noneinc-s Offline
Registered User
 
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862
If rmdir complains about directory not being empty, use rm -rf
Reply With Quote
  #10  
Old 5th February 2006, 02:32 AM
chili555's Avatar
chili555 Offline
Registered User
 
Join Date: Jul 2004
Location: South Carolina, USA
Age: 70
Posts: 261
su -
<password>
rm -rf /home/chili/.Trash/*

Try not to make a mistake; I'd hate to delete /home by mistake!
Reply With Quote
  #11  
Old 5th February 2006, 03:14 AM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Code:
rmdir empty-folder
removes empty dirs
Code:
rm -drf folder-or-file
removes a directory and it's contents without warning. Be careful.
To make it confirm, use
Code:
rm -drfi file-or-folder
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #12  
Old 5th February 2006, 04:33 AM
thugpoet22's Avatar
thugpoet22 Offline
Registered User
 
Join Date: May 2005
Posts: 193
Thanks a lot, that worked, finally got that file off my system
__________________
We're all born with ignorance but its our own choice to die with stupidity
Reply With Quote
Reply

Tags
delete, file

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i delete a file in terminal? tootal2 Using Fedora 8 23rd December 2008 11:53 AM
confuse to delete file (rm -rf) darkdragon Using Fedora 3 5th February 2007 05:57 AM
How do you delete a file in the terminal!? Linkmax Using Fedora 4 25th October 2006 05:02 AM
delete a swap file dcbq60 Using Fedora 1 12th March 2006 05:11 AM
Automatic type text , delete file and save file problem shown in FC3 and FC2 kalpana EOL (End Of Life) Versions 1 10th June 2005 04:50 AM


Current GMT-time: 10:58 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat