linux中rm命令改为放置进垃圾箱
把这个totrash放进你~/.bin里边
代码:
#!/bin/shmv $@ ~/.local/share/Trash/files
chmod u+x ~/.bin/totrash
?
然后编辑你的~/.bashrc
代码:alias rm='~/.bin/rm'
最后 source ~/.bashrc
发布时间: 2012-08-07 14:54:48 作者: rapoo
linux中rm命令改为放置进垃圾箱
把这个totrash放进你~/.bin里边
#!/bin/shmv $@ ~/.local/share/Trash/files
chmod u+x ~/.bin/totrash
?
然后编辑你的~/.bashrc
代码:alias rm='~/.bin/rm'
最后 source ~/.bashrc