LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot empty everything that is inTrash (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-empty-everything-that-is-intrash-669781/)

Shadowmeph 09-13-2008 08:59 PM

cannot empty everything that is inTrash
 
Not sure why but there is one folder that will not empty from my trash bin is there a command that will let me delete that file in the trash?

David the H. 09-14-2008 12:08 AM

If you explain to us in more detail what you've tried already, what the results/outputs of those attempts were, and some specifics of the directory itself (does it have an unusual name or something), then perhaps we could help you.

Have you tried it from a shell yet, or only from a gui file manager? Have you tried deleting as root yet? Are there any files inside the directory, including hidden files? Etc.

In short, we need more info.

BobNutfield 09-14-2008 05:44 AM

This occurs when something you are trying to delete is owned by another user (usually root) and you do not have permissions to delete it. Check the permissions on the file. If it owned by root, you can remove it by opening the trash icon as sudo user. Do this by prressing Alt+F2, and in the run box type:

Quote:

gksudo nautilus
You can now open the trash folder as root and delete the folder.

Shadowmeph 09-14-2008 12:10 PM

Quote:

Originally Posted by BobNutfield (Post 3279909)
This occurs when something you are trying to delete is owned by another user (usually root) and you do not have permissions to delete it. Check the permissions on the file. If it owned by root, you can remove it by opening the trash icon as sudo user. Do this by prressing Alt+F2, and in the run box type:



You can now open the trash folder as root and delete the folder.

I am not sure of how to check the permissions on files , also when I try to run the command "gksudo nautilus" it gives me the error bash: gksudo: command not found.
Quote:

If you explain to us in more detail what you've tried already, what the results/outputs of those attempts were, and some specifics of the directory itself (does it have an unusual name or something), then perhaps we could help you.

Have you tried it from a shell yet, or only from a gui file manager? Have you tried deleting as root yet? Are there any files inside the directory, including hidden files? Etc.

In short, we need more info.
I have only tried using the gui I wanted to try and open the trash under root and delete it that way but I couldn't figure out how

Nylex 09-14-2008 12:17 PM

Quote:

Originally Posted by Shadowmeph (Post 3280149)
I am not sure of how to check the permissions on files

ls -l will give you the "long listing" format of files in the current directory. The first column shows the permissions.

Shadowmeph 09-14-2008 12:55 PM

Quote:

Originally Posted by Nylex (Post 3280153)
ls -l will give you the "long listing" format of files in the current directory. The first column shows the permissions.

thank you now if only I could cd into trash so I could maybe change the permission of the folder in there so I can delete it
ok after moving on to other things I came back to this minor problems and figured it out
all I had to do was as SU in terminal cd /.local/share/Trash/files the rm -r "name of file" and it worked :)


All times are GMT -5. The time now is 05:08 AM.