Go to file
2022-04-15 14:54:27 +08:00
lib Add configuration file /etc/rm_.conf 2021-05-16 09:09:00 +08:00
build_mv.sh 脚本内添加安装、卸载功能 2022-04-01 21:20:02 +08:00
build_mv.txt based on coreutils-8.32 2020-09-02 16:47:03 +08:00
copy.c based on coreutils-8.32 2020-09-02 16:47:03 +08:00
copy.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
coreutils.txt based on coreutils-8.32 2020-09-02 16:47:03 +08:00
cp-hash.c based on coreutils-8.32 2020-09-02 16:47:03 +08:00
cp-hash.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
die.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
extent-scan.c based on coreutils-8.32 2020-09-02 16:47:03 +08:00
extent-scan.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
fiemap.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
force-link.c based on coreutils-8.32 2020-09-02 16:47:03 +08:00
force-link.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
ioblksize.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
mv.c 更优雅 2022-04-15 14:54:27 +08:00
README.md Add configuration file /etc/rm_.conf 2021-05-16 09:09:00 +08:00
remove.c based on coreutils-8.32 2020-09-02 16:47:03 +08:00
remove.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
selinux.c based on coreutils-8.32 2020-09-02 16:47:03 +08:00
selinux.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
system.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00
version.c based on coreutils-8.32 2020-09-02 16:47:03 +08:00
version.h based on coreutils-8.32 2020-09-02 16:47:03 +08:00

rm_

代替rm命令防止错误删除文件  
基于coreutils-8.32 mv源代码

Build

git clone https://github.com/niuyuling/rm_.git  
cd rm_ 
apt-get build-dep coreutils
bash build_mv.sh

Help Information

root@niuyuling:/mnt/c/Users/niuyuling/Desktop/Arm-tool# rm_ busybox-1.31.1  
rm_ 
busybox-1.31.1  
/tmp/   
3   
root@niuyuling:/mnt/c/Users/niuyuling/Desktop/Arm-tool# 

#支持配置文件
root@NIUYULING:/mnt/c/Users/niuyuling/Desktop/rm_# cat /etc/rm_.conf
/opt/
root@NIUYULING:/mnt/c/Users/niuyuling/Desktop/rm_#