Go to file
2022-03-19 03:40:16 -06:00
lib Add configuration file /etc/rm_.conf 2021-05-16 09:09:00 +08:00
build_mv.sh 优化读取配置文件 2022-03-19 03:40:16 -06: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-03-19 03:40:16 -06: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_#