Deleting Trash can
Wander Boessenkool
wander at tomaatnet.nl
Mon Dec 20 19:37:47 UTC 2004
On Mon, 2004-12-20 at 13:35 -0500, Jozsef Mak wrote:
>
> >From: Wander Boessenkool <wander at tomaatnet.nl>
> >Reply-To: wander at tomaatnet.nl
> >To: Jozsef Mak <j_mak3 at hotmail.com>
> >CC: ubuntu-users at lists.ubuntu.com
> >Subject: Re: Deleting Trash can
> >Date: Mon, 20 Dec 2004 18:36:36 +0100
> >
> >On Mon, 2004-12-20 at 11:48 -0500, Jozsef Mak wrote:
> > > What is the command line level command for emptying the wastebasket?
> >
> >rm -r ~/.Trash/*
> >
> >change that to an rm -rf if you're feeling lucky, and you are sure you
> >don't make typos ;-)
> >
> >but possibly you need to do a:
> >
> >sudo chown -R yourusername /home/yourusername/.Trash/
> >
> >first.
> Hi,
>
> I executed the commands you told me but it didn't empty the trash can.
>
> root at ubuntu:/home/mak # chown -R mak /home/mak/.Trash
> root at ubuntu:/home/mak # rm -rf ~/.Trash/*
>
> Did i execute them in the right order?
You just emptied root's trashcan. You are supposed to execute the
commands as the user's who's trashcan you want emptied ;-)
But since you just chowned all the files in your own trashcan, you
should now be able to empty it the 'normal' way
>
> thanks
>
> > > jozsefmak
> > >
> > > >From: Brian Puccio <brian at brianpuccio.net>
> > > >To: ubuntu-users at lists.ubuntu.com
> > > >Subject: Re: Deleting Trash can
> > > >Date: Sun, 19 Dec 2004 22:52:33 -0500
> > > >
> > > >On Sun, 2004-12-19 at 21:19 -0500, Jozsef Mak wrote:
> > > > > Hi,
> > > > >
> > > > > I have hundreds of MB of old files and folder in my Trash can and
> > > >Ubuntu
> > > > > doesn't let me delete them because i have no permission. How can i
> > > >delete
> > > > > these folders and files and how can i disable this permission
> >feature
> > > > > because it drives me crazy.
> > > >
> > > >I had that issue once as well. Not sure what created it. Anyhow, as
> > > >root, go into the Trash folder and as root delete those files (I just
> > > >used sudo at a command prompt, though I guess you can always gksudo a
> > > >nautilus session and remove them that way.
> > > >
> > > >The permission feature is just part of the normal linux filesystem, you
> > > >can't delete files you don't have access to. Again, I'm not sure what
> > > >caused it, but the hiccup only happened once to me.
> > > >
> > > >Maybe a "force empty" option when right-clicking the trash can that
> > > >prompts for the root password to take care of issues such as this?
> > > ><< signature.asc >>
> > > >--
> > > >ubuntu-users mailing list
> > > >ubuntu-users at lists.ubuntu.com
> > > >http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> > >
> > >
> > >
> ><< signature.asc >>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20041220/c3ca9287/attachment.sig>
More information about the ubuntu-users
mailing list