Search This Blog

Total Pageviews

Thursday, 21 April 2011

Unix Delete files by inode number

How to delete file using inode number?
Remove a file on linux using the inode number
remove a file with funny characters
Delete files by inode number

#pwd
/tmp

#ls -lia ----- i for inode

30401152 -rw-r--r-- 1 root root 0 2011-04-21 09:24 "la*
59544366 drwx------ 2 anujs users 6 2011-04-21 09:27 plugtmp-33


30401152 is inode number .

find /tmp -inum 30401152 -exec rm -i {} \;

or
apt-amd-02:/tmp # rm '"la*'

Oracle DBA

anuj blog Archive