home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4324 comp.unix.internals:1697 comp.sys.hp:9319
- Newsgroups: comp.unix.programmer,comp.unix.internals,comp.sys.hp
- Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!actrix!paul
- From: paul@actrix.gen.nz (Paul Gillingwater)
- Subject: Re: inode to filename
- Organization: Actrix Information Exchange
- Date: Sat, 15 Aug 1992 20:58:16 GMT
- Message-ID: <1992Aug15.205816.16861@actrix.gen.nz>
- References: <1992Aug13.135735.6607@bwdls61.bnr.ca> <JIM.92Aug14122954@hunter.cs.strath.ac.uk> <1992Aug14.223505.13853@gateway.novell.com>
- Lines: 49
-
- I don't have an HP-UX system handy, but both Coherent and ISC Sys V.3 have a
- command called ncheck(1m), which will tell you the names of files in a file
- system based on its inode number.
-
-
-
- NCHECK(1M) 386/ix NCHECK(1M)
-
-
-
- NAME
- ncheck - generate path names from i-numbers
-
- SYNOPSIS
- /etc/ncheck [ -i i-numbers ] [ -a ] [ -s ] [ file-system ]
-
- DESCRIPTION
- The ncheck command with no arguments generates a path name
- vs. i-number list of all files on a set of default file sys-
- tems (see /etc/checklist). Names of directory files are
- followed by /..
-
- The options are as follows:
-
- -i limits the report to only those files whose i-numbers
- follow.
-
- -a allows printing of the names . and .., which are ordi-
- narily suppressed.
-
- -s limits the report to special files and files with set-
- user-ID mode. This option may be used to detect viola-
- tions of security policy.
-
- File system must be specified by the file system's special
- file.
-
- The report should be sorted so that it is more useful.
-
- SEE ALSO
- fsck(1M), sort(1).
-
- DIAGNOSTICS
- If the file system structure is not consistent, ?? denotes
- the ``parent'' of a parentless file, and a path name begin-
- ning with ... denotes a loop.
-
- --
- Paul Gillingwater, paul@actrix.gen.nz
-