安装
# wget https://file.cnxiaobAI.com/linux/Safe-rm/safe-rm-0.13.tar.gz
# tar -zxvf safe-rm-0.13.tar.gz -C /usr/local/
# mv safe-rm-0.13/ safe-rm
# cd safe-rm/
# cp safe-rm /usr/local/bin/rm
# ll !$
# export PATH=/usr/local/bin:/bin:/usr/bin:$PATH >>/etc/profile
# source /etc/profile
使用
# vim /etc/safe-rm.conf
/
/bin
/boot
/dev
/etc
/home
/initrd
/lib
/lib32
/lib64
/proc
/root
/sbin
/sys
/usr
/usr/bin
/usr/include
/usr/lib
/usr/local
/usr/local/bin
/usr/local/include
/usr/local/sbin
/usr/local/share
/usr/sbin
/usr/share
/usr/src
/var
/etc/safe-rm.conf
声明:本站部分内容及图片来自互联网,转载是出于传递更多信息之目的,内容观点仅代表作者本人,不构成投资建议。投资者据此操作,风险自担。如有任何标注错误或版权侵犯请与我们联系,我们将及时更正、删除。