in reply to Re: Deleting an Odd Filename (inode)
in thread Deleting an Odd Filename
Nice, but it will delete ALL hardlinks to the file that are in or below the current directory, not just the file you want to delete. (OK, files with more than one hardlink are rare except when busybox is near.)
# touch foo
# ln foo bar
# ls -li
total 0
54804566 -rw-r--r-- 2 alex users 0 2009-06-03 00:52 bar
54804566 -rw-r--r-- 2 alex users 0 2009-06-03 00:52 foo
# find . -inum 54804566 -exec rm {} \;
# ls -l
total 0
#
Alexander
|
|---|