move to trash instead of rm command in ubuntu
时间:2011-04-09 来源:coolesting
sudo apt-get install trash-cli
vim ~/.brash_aliases
enter this alias rm='trash' (the command trash maybe is trash-put, more detail check the trash-cli document)
then, logout again.
test
touch tt
mkdir abc
rm tt
rm -rf abc
now you can find the tt and abc in trash directory that path is ~/.local/share/Trash/file
相关阅读 更多 +