Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: How to empty Trash ?

  1. #11
    Join Date
    Sep 2011
    Location
    127.0.0.1
    Beans
    277
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: How to empty Trash ?

    hope not to confuse the questioner but in the case of external hard drives using the
    Code:
    rm -r
    command is often the only thing to REALLY get rid of the trash on them. They simply make a directory /.Trash which you cannot remove in any way except for the rm command.

    However, when doing the rm command, as long as you don't giv eit super user privileges, it cannot harm your system, your personal files it may delete though, so still to be careful.
    Its best to know what the rm command does with its several flags (the -r for example) so the -r means that all directories AND their contents will be removed, and the * option just means that ANY file or directory will be deleted. YOu cannot recover files removed with rm, so that why you need to be extra careful.

  2. #12
    Join Date
    Aug 2012
    Beans
    28

    Re: How to empty Trash ?

    Thanks Shannon, this command
    Code:
    rm -r ~/.local/share/Trash/*
    worked for me this time

    Well what is the difference between rm -r & rm -rf ?

  3. #13
    Join Date
    Sep 2012
    Location
    I think EARTH
    Beans
    76
    Distro
    Ubuntu 12.04 Precise Pangolin

    Lightbulb Re: How to empty Trash ?

    For me the Trash folder was located in /home/username/.local/share/Trash/. I found it out using this command
    Code:
    find / -type d -name *Trash*
    Then i issued this command
    Code:
    rm -r /home/fortunepay/.local/share/Trash/files/*
    Voila it worked. So for those who are unable to locate their Trash folder,use the find command and then use rm -r command to remove the contents of files directory under Trash.

  4. #14
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to empty Trash ?

    Quote Originally Posted by Mr. Shannon View Post
    Please ignore the HTML Code header. I don't know of another way to escape the code tags.
    [noparse] and [/noparse] will do the trick.....
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.

  5. #15
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to empty Trash ?

    Quote Originally Posted by Akhj View Post
    Well what is the difference between rm -r & rm -rf ?
    According to the man page, the "f" (short for "force") says to ignore nonexistent files, and to never prompt.

    Important: be very very very careful with the -rf version of the rm command. When applied in the wrong place, it can cause serious frustration due to major loss of data
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.

  6. #16
    Join Date
    Aug 2012
    Beans
    28

    Re: How to empty Trash ?

    Thanks to all of you

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •