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

    May 6, 2006
    George, S.Africa

    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 ??
Thread Status:
Not open for further replies.