trash-cli .. trash can management.

Discussion in 'all things UNIX' started by Ocky, Aug 21, 2011.

Thread Status:
Not open for further replies.
  1. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,710
    Location:
    George, S.Africa
    trash-cli

    Quite nice. Remember to install with pip which allows easy uninstall.

    sudo apt-get install python-setuptools
    sudo easy_install pip

    sudo pip install trash-cli

    To uninstall:-

    sudo pip uninstall trash-cli

    You can use it instead of rm by inserting an alias in .bashrc (That way you can restore files/folders that would normally be gone for good when using rm command)

    alias rm='trash-put'

    I have tried it in SL6.1 and it works very well - however I will refrain from using it as root just in case &
    despite my test with an old rkhunter log file which was restored without problems. (sudo restore-trash or
    su -c "restore-trash"). OR do you think it's safe as houses with the alias ??
     
Loading...
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.