SUMMARY:delete file by inode

From: Martin Las (las@nic.utc.sk)
Date: Fri Jul 11 1997 - 03:25:26 CDT


I used

# cd <directory>
# ls -li | pg
# find . -inum <inode number> -exec rm "{}" ";"

but

 ls -i, ncheck and clri

seems to work fine as well.

Best regards
        Martin

Many thanks to

Srinivasa Rao Duddupudi <sduddupu@cvimail.cv.com>
From: David Montgomery <david@cs.newcastle.edu.au>
moreilly@fsaia.qld.gov.au (Mark J O'reilly)
Kim Bum-Chul <quantum@brain.tgmi.co.kr>
Glenn Satchell <Glenn.Satchell@uniq.com.au>
From: Shriman Gurung <shriman@venus.co.uk>
PARTHIV SHAH <parthiv@nscc.com>
"David L. Markowitz" <david.markowitz@litronic.com>
csmoko@nswc.navy.mil (Chuck Smoko - T11)
john benjamins <johnb@Soliton.COM>
Rick Schieche <scud@lewis-deh2.army.mil>
mattias@txc.com (Mattias Zhabinskiy)
rtrzaska@uk.mdis.com (Ray Trzaska)
dean.bourloukas@bglobal.com (Dean Bourloukas)
Gary Franczyk <franczyk@e-one.com>
Rich Kulawiec <rsk@itw.com>
Erik Janssen <ejanssen@nl.oracle.com>
btirg@ui.uis.doleta.gov (Roland Grefer)
bismark@alta.Jpl.Nasa.Gov (Bismark Espinoza)
          :
          :
        others
          :

>-----------------------------PROBLEM-----------------------------------------
> Hi gurus,
> can I remove file specified by inode?
>
> Thanks,
> Martin
>
> ---------------------------------------------------------------------------->
> nic-las >pwd
> /dev/rmt
> nic-las >ls -ali | pg
> total 8430
> 26441 drwxrwxr-x 2 root sys 512 Jul 10 12:18 .
> 75522 drwxrwxr-x 16 root sys 5632 Jun 27 18:17 ..
> 26592 lrwxrwxrwx 1 root root 85 May 16 1996 0 ->
> ../../devices/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/st@5,0:
> 26641 -rw-r--r-- 1 root other 4276224 Jul 10 12:18 0
> ^
> THIS ONE !!!
> (two file with the same name, but dif. i-nodes )
> ----------------------------------------------------------------------------<
>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:58 CDT