使用inode 删除: 首先使用ls -i查看文件夹的 inode 号码。 然后使用find命令结合-inum选项删除:find . -inum [inode-number] -exec rm -r {} \; 在执行这些操作之前,请确保你正准备删除正确的文件夹,因为rm -r命令会递归地删除文件夹及其所有内容,且无法恢复。如果不确定,可以先使用ls命令查看文件夹内容。
对于这种文件我们应该如何删除呢? 首先我们演示一下find命令结合xargs命令删除不带空格的文件 [root@ELK-chaofengtest]# touch 1.txt 2.txt[root@ELK-chaofengtest]# ls1.txt 2.txt [root@ELK-chaofengtest]# find . -type f | xargs./1.txt ./2.txt [root@ELK-chaofengtest]# find . -type f | x...
首先我们演示一下find命令结合xargs命令删除不带空格的文件 [root@ELK-chaofeng test]# touch 1.txt 2.txt [root@ELK-chaofeng test]# ls 1.txt 2.txt [root@ELK-chaofeng test]# find . -type f | xargs ./1.txt ./2.txt [root@ELK-chaofeng test]# find . -type f | xargs rm -rf [root@...