LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-13-2008, 08:59 PM   #1
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Rep: Reputation: 29
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?
 
Old 09-14-2008, 12:08 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960
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.
 
Old 09-14-2008, 05:44 AM   #3
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
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.
 
Old 09-14-2008, 12:10 PM   #4
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by BobNutfield View Post
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
 
Old 09-14-2008, 12:17 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Shadowmeph View Post
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.
 
Old 09-14-2008, 12:55 PM   #6
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 260

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by Nylex View Post
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

Last edited by Shadowmeph; 09-14-2008 at 05:16 PM.
 
  


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
About Empty FS Paris Heng Linux - Software 1 02-28-2008 08:36 AM
qt/bin/ is empty extrasolar Linux - Software 2 07-14-2006 06:06 PM
Gentoo VNC, empty dialog box !! "Question" window is empty ! TheHushedCaskeT Linux - Software 0 02-01-2005 10:14 PM
How can I tell if a partition is empty? PenguinMolester Linux - Newbie 5 10-27-2004 07:46 AM
Empty Folder ? wlaw Linux - Networking 1 09-07-2004 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 PM.

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