How to delete a file using inode numbers?

William Lai se208104 at seas.gwu.edu
Thu Mar 22 01:16:50 AEST 1990


I accidentally created a file using fopen(), using a uninitalized buffer
as the filename string.  What I got on hand is a file with a non-ascii name.
When I try to do rm(1): "rm *", the diagnostic is 

      "rm: <a bunch of garbage>: No such file or directory."

However, when I ls(1), it clearly indicated a zero-lengthed file with a weird
name exists, and even gives an inode number.

My question is this:  Can I delete the file using the inode number?  Or maybe
                      there's a better way?

Thanks in advance,
William

Please email answers to me and I will summarize and post to this group.



More information about the Comp.unix.questions mailing list