# mkdir -p test/{a..z}
# ls -li
total 20200840
685874682 -rwxrwxrwx 1 apptgprd oinstall 0 Oct 22 20:58 hv?
680953440 drwxr-xr-x 28 root root 4096 Oct 23 09:57 test
#左边为inode数,右边为文件名,删除办法如下:
find . -inum 685874682 | xargs rm
#或者使用如下命令:
find . -inum 680953440 -delete #删除目录用delete
#报错内容:
# LANG=C
# find . -inum 680953440 | xargs rm
rm: cannot remove ‘./test’: Is a directory
# find . -inum 680953440 -delete
find: cannot delete ‘./test’: Directory not empty
# find . -inum 680953440 | xargs rm
rm: missing operand
Try ‘rm –help’ for more information.
#解决方法:
# find . -inum 680953440 | xargs rm -f
rm: cannot remove ‘./test’: Is a directory
# find . -inum 680953440 | xargs rm -rf
rm -rf:强制删除