Thursday, November 4, 2010

How to delete file using inode number?

■ Requirement : How to delete file using inode number
■ OS Environment : Linux[RHEL, Centos]
■ Application: find, inode
■ Implementation Steps : 

To view the inode number :

$ ls -il

Assume indoe is 782263 :

Delete file which has inode  782263 :

$ find . -inum 782263 -exec rm -f {} \;




No comments:

Post a Comment