如何快速的删除文件
[root@localhost ~]# mkdir -pv /opt/rsync-delete
mkdir: 已创建目录 '/opt/rsync-delete'
[root@localhost ~]# mkdir -pv /yun/yun1
mkdir: 已创建目录 '/yun'
mkdir: 已创建目录 '/yun/yun1'
[root@localhost ~]# cp -av /etc/passwd /yun/yun1/
'/etc/passwd' -> '/yun/yun1/passwd'
[root@localhost ~]# ll /yun/yun1/
总用量 4
-rw-r--r--. 1 root root 2219 12月 19 14:16 passwd
[root@localhost ~]# rsync -avz --delete /opt/rsync-delete/ /yun/yun1/
sending incremental file list
deleting passwd
./
sent 58 bytes received 29 bytes 174.00 bytes/sec
total size is 0 speedup is 0.00
[root@localhost ~]# ll /yun/yun1/
总用量 0
[root@localhost ~]# time rsync -avz --delete /opt/rsync-delete/ /yun/yun1/
sending incremental file list
sent 51 bytes received 12 bytes 126.00 bytes/sec
total size is 0 speedup is 0.00
real 0m0.047s
user 0m0.001s
sys 0m0.005s
如何查看开机自启的命令
systemctl list-unit-files | awk ‘{print $1}’