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

4th February 2006, 07:40 PM
|
 |
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.
__________________
We're all born with ignorance but its our own choice to die with stupidity
|

4th February 2006, 08:04 PM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 3,172

|
|
|
Log in as SU and delete.
Lazlow
|

4th February 2006, 10:08 PM
|
|
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
|

4th February 2006, 11:17 PM
|
 |
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
|

5th February 2006, 12:50 AM
|
|
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
|

5th February 2006, 01:04 AM
|
 |
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
|

5th February 2006, 01:10 AM
|
|
Registered User
|
|
Join Date: Aug 2005
Posts: 3,172

|
|
|
for directories use rmdir
for files us rm
Lazlow
|

5th February 2006, 01:11 AM
|
 |
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
|

5th February 2006, 01:15 AM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Wine Country, California
Posts: 2,862

|
|
|
If rmdir complains about directory not being empty, use rm -rf
|

5th February 2006, 02:32 AM
|
 |
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!
|

5th February 2006, 03:14 AM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224

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

5th February 2006, 04:33 AM
|
 |
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 10:58 (Saturday, 25-05-2013)
|
|
 |
 |
 |
 |
|
|