unlink(inode)? or how to remove file with '/' in its name

Conor P. Cahill cpcahil at virtech.uucp
Fri Oct 19 22:06:21 AEST 1990


In article <1990Oct18.030832.10894 at melb.bull.oz.au> sjg at sun0.melb.bull.oz.au (Simon J. Gerraty) writes:
>It only took five minutes to write a short C programme to print
>inode/name pairs from a directory. ls(1) etc weren't any use at
>all, though echo '*' would at least show the name.

You could have used od(1) to get this info.

>Ok, I know the inode, all I have to do is get rid of it.  How?

If you just want to get rid of it, try clri followed by fsck.

If you want to save the file and just change the name so that it
no longer has a / in it, use fsdb.


-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list