PDA

View Full Version : [ubuntu] wastebasket directory??



raedbenz
July 29th, 2008, 11:49 AM
hi, what is wastebasket's directory in order to be accessed from command line??
coz i have some file in it that cant be deleted it says about error in permission,
thanks

PmDematagoda
July 29th, 2008, 11:57 AM
The directory you want is:-

~/.local/share/Trash

philinux
July 29th, 2008, 11:59 AM
username/.local/share/Trash/files

There is also a folder called info in Trash.

raedbenz
July 29th, 2008, 12:01 PM
neither in "info" of "files" i can see what is inside my wastebasket.
hints???
thanx

PmDematagoda
July 29th, 2008, 12:05 PM
neither in "info" of "files" i can see what is inside my wastebasket.
hints???
thanx

Can you post the output of:-

ls -la
inside the files directory.

raedbenz
July 29th, 2008, 12:08 PM
hi,,


raed@raed-laptop:~/.local/share/Trash/files$ ls -al
total 8
drwx------ 2 raed raed 4096 2008-07-29 12:07 .
drwx------ 4 raed raed 4096 2008-07-16 11:55 ..


raed@raed-laptop:~/.local/share/Trash/info$ ls -al
total 8
drwx------ 2 raed raed 4096 2008-07-29 12:07 .
drwx------ 4 raed raed 4096 2008-07-16 11:55 ..
-rw-r--r-- 1 raed raed 0 2008-07-25 19:53 disk.trashinfo
-rw-r--r-- 1 raed raed 0 2008-07-26 10:19 etch.trashinfo
-rw-r--r-- 1 raed raed 0 2008-07-21 09:27 mod.trashinfo
-rw-r--r-- 1 raed raed 0 2008-07-16 23:58 tmp.sEiQeR5585.trashinfo

and here is my basket:79335
cheers

jjlido
July 29th, 2008, 02:23 PM
when I have empty wastebasket there are no files in Trash/info folder.
Try to move what you have in the info folder somewhere and see if this fix.
I say move somewhere so you can step back in case of need.

Malta paul
July 29th, 2008, 03:39 PM
Some times you can't delete a file from your trash bin because they are read only. You may find also that you can't change the file from 'read only' to 'write'!.

You don't need to use the terminal to remove them from the trash bin.

There are two trash bins located at:
User Trash: /home/>username</.local/share/trash
Root Trash: /root/.local/share/trash

Both these trash directories contain two directories 'files' and 'info'
delete the items in these files, but DO NOT delete the two directories.

To access the Root trash use 'Alt+F2' type in >gksudo nautilus<
(also now be careful as you are permanently in root)

Hope this helps:)

BDNiner
July 29th, 2008, 05:26 PM
There are also hidden trash folders on your other harddrives. I can see that you have other drives mounted in nautilus. So you can open nautilus as root and browse to the other drives and display hidden files you should see another trash folder. there should be one for each mount point.

Ghliofris
August 20th, 2008, 01:59 PM
I had to go in through terminal and chmod 777 to all the directories and sub directories before they could be deleted.

nynoah
August 20th, 2008, 02:41 PM
easier way to do it would be to sign in using alt-f2 gksudo nautilus