首页 > 数据库 > Oracle > 【人在运维囧途_09】秒删海量数据文件的方法
当SRC和DEST性质都为目录【d】时,意思是删除该目录下的所有文件,使其变为空目录
PS:其实该命令顶好记的哦、av -_-#、H$_$、男人很少不懂的、骚年、此时你的硬盘都有谁来着、、
⑤ 测试:
[root@localhost log]# ls rhel-server-5.8-i386-dvd.iso [root@localhost log]# pwd /tmp/test/log [root@localhost ~]# mkdir empty [root@localhost ~]# rsync --delete-before -avH --progress --stats /root/empty/ /tmp/test/log/ building file list ... 1 file to consider deleting rhel-server-5.8-i386-dvd.iso ./ Number of files: 1 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 19 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 29 Total bytes received: 15 sent 29 bytes received 15 bytes 6.77 bytes/sec total size is 0 speedup is 0.00
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26515977/viewspace-1208087/ ,如需转载,请注明出处,否则将追究法律责任。