728x90 AdSpace

  • Latest News

    Monday, 24 July 2017

    How to delete trash from command line

    How to delete trash from command line

    When you delete files or folder on lubuntu normally it will goes to trash can first, and then you can permanently delete if you wish, but sometimes it doesn't work, there are some files that can't be removed on the trash can. The solution is to delete from command line.

    If you delete files or folders that under root privilege, it goes to trash can, but on you won't be able to clear the trash can, empty trash won't work. The only way you can delete these files is from command line.

    First of all you need to know the location of trash can, it is under hidden folder .local, here's the complete path:
    ~/.local/share/Trash/files
    You can cd to that path and see all the files and folder inside your trash can.
    cd ~/.local/share/Trash/files
    ls -l
    Now you can delete all files and folder inside trash, with this simple command:
    sudo rm -r *
    Or this:
    sudo rm -r ~/.local/share/Trash/files/*

    If You Like This Please Leave a Comment Or Share this Post

    Full Softwares Android Apps
    • Blogger Comments
    • Facebook Comments

    0 comments:

    Post a Comment

    Item Reviewed: How to delete trash from command line Rating: 5 Reviewed By: Unknown
    Scroll to Top