Home / cs-notes / Operating System / Linux / Commands / Problems / 自实现回收站
mkdir ~/.recycle_bin
vim ~/.remove.sh
stamp=`date +%y%m%d-%H%M%S`
for i in $*; do
fileName=`basename $i`
mv $i ~/.recycle_bin/$fileName.$stamp
done
vim ~/.zshrc
alias rm="sh ~/.remove.sh"