Remove a file on linux using the inode number

Posted by WebDevHobo on Super User See other posts from Super User or by WebDevHobo
Published on 2010-05-19T22:05:16Z Indexed on 2010/05/19 22:10 UTC
Read the original article Hit count: 458

Filed under:
|
|

If you create a file on UNIX/linux with special chars, like touch \"la*, you can't remove it with rm "la*. You have to use the inode number(you can if you add the \ before the name, I know, but you'd have to guess as a user that it was used in the file creation).

I checked the manpage for rm, but there's no metion of the inode number. Doing rm inodenumber doesn't work either.

What is the command for this?

© Super User or respective owner

Related posts about linux

Related posts about unix