×°ÁËÐÂϵͳ ÓïÑÔ»·¾³LANG=zh_CN.UTF-8
¿ÉÊÇ»¹ÊÇ»áÓÐÏÔʾÂÒÂëµÄÎļþ»òÎļþ¼Ð
Èç¹ûÓÃrm -rfÃüÁîµÄ»°»á±È½ÏÂé·³
֮ǰÌý¹ýÓÐÈËÓÃɾ³ýinodeÖµµÄ·½·¨À´É¾³ýÂÒÂëÎļþºÍÎļþÃû¹ý³¤µÄÎļþ£¬
ÏëÇëÎÊÒ»ÏÂÄÄλ¸ßÊÖÖªµÀÓÃʲôÃüÁîɾ³ý£¿
ÎÒÖ»ÖªµÀÏÈÓÃls -ilÏÈÕÒµ½¸ÃÎļþµÄinodeÖµ£¬µ«ÊǽÓÏÂÀ´Èç¹ûʹÓÃrm -fÀ´É¾³ýµÄ»°£¬¸ù±¾¾ÍûÓÐЧ¹û£¬Çó½Ì¸ßÈËÖ¸µã¡£¡£¡£¡£¡£¡£
Ïà˼°®ÎÄ ÓÚ 2011-11-07 20:48:48·¢±í:
ɾÎļþ:
find . -level 0 -inum 45656 -exec rm -i {} \;
rm -i `find . -level 0 -inum 45656 -print`
rm -i `find . -level 0 -inum 45656`
ɾĿ¼£¬»»»»ÃüÁî¾ÍÐÐÁË
Ŀ¼ÀïûÓÐÎļþÓÃ
rmdir `find . -level 0 -inum 45656`
ÓÐÎļþ¾ÍÓÃ
rm -r `find . -level 0 -inum 45656`
ls -i |grep num|xargs -I {} rm -f {}
ÏȸÄÃû£¬ÔÙɾ³ý
ls -il ÏÈ¿´inodeºÅ£¬È»ºó£º
find . -inum 16989 £exec rm £i {} \;
ÕâÖÖɾ³ýÒ²ÐèҪСÐÄʹÓ㬵±ÒªÉ¾³ýµÄÎļþÊÇ·ÅÔÚ / ϵÄʱºò£¬findÃüÁî»á±éÀúËùÓÐĿ¼£¬ÕâÑù²»Í¬µÄÎļþϵͳÖлá¿ÉÄÜÓÐÏàͬµÄinodeÖµ¡£
Ïà˼°®ÎÄ ÓÚ 2011-11-07 20:39:17·¢±í:
ÂÒÂëÎļþ£¬ÎÞ·¨ÊäÈëÎļþÃû£¬²»ºÃɾ³ý£¬¿ÉÒÔͨ¹ý²éÕÒinodeÖµµÄ·½Ê½´òÓ¡ÎļþÃû£¬ÓÃ×éºÏÃüÁîɾ³ý
·½·¨£¬googleËÑË÷ ¡°Í¨¹ýinodeֵɾ³ýÎļþ¡± ¾ÍÄÜÕÒµ½½á¹ûÀ²
danmovip ÓÚ 2011-11-07 18:24:27·¢±í:
¾ÍÊÇ×Ô¼ºÉÏ´«µÄÒ»¸ö´æ·Å½Å±¾µÄÎļþ¼Ð£¬µ«ÊÇÎļþ¼ÐÊÇÖÐÎÄÃû×Ö £¬ËùÒÔÏëɾÁË
linuxunix ÓÚ 2011-11-07 11:23:05·¢±í:
˵Ã÷°×µãºÃ²»£¬ÄÄÀ´µÄÂÒÂëÎļþ