Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!samsung!uunet!seas.gwu.edu!se208104 From: se208104@seas.gwu.edu (William Lai) Newsgroups: comp.unix.questions Subject: How to delete a file using inode numbers? Keywords: delete rm inode Message-ID: <1682@sparko.gwu.edu> Date: 21 Mar 90 15:16:50 GMT Reply-To: se208104@seas.gwu.edu (William Lai) Distribution: usa Organization: The George Washington University, Washington D.C. Lines: 16 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: : 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.