Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ncheck(8) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsck, dfsck

sort



NCHECK(8,C)                 AIX Commands Reference                  NCHECK(8,C)



-------------------------------------------------------------------------------
ncheck



PURPOSE

Generates path names from i-numbers.

SYNTAX


          +---------------------------------------+   +--------------+
ncheck ---| +--- -s ----------------------------+ |---|              |---|
          +-| +------+   +--------------------+ |-+   +- filesystem -+
            +-|      |---|                    |-+
              +- -a -+   +- -i --- inumber ---+
                                ^           |
                                +-----------+


Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.

DESCRIPTION

The ncheck command without any flags writes to standard output the path name
and i-number list for all files in filesystem.  If you do not specify
filesystem, ncheck operates on the file systems described in /etc/filesystems.

If you specify an invalid file system, the "??" in the name stands for the
parent of a file that does not have a parent.  Path names beginning with ...
(dot dot dot) indicate a loop.

Hidden directories and their components are indicated in the output by the
presence of "@" after the name of the hidden directory, before the "/" that
separates the directory name from the component name.

Filesystem may name one of the following:

   block or character special file indicating a local device.

   block special file indicating a remote device on the same type of machine
   (AIX PS/2 or AIX/370).

   the mount point on which a local file system is normally mounted (as defined
   in /etc/filesystems).

If filesystem names a copy of a replicated file system, only files actually
stored in this copy of the file system are listed.  In particular, if a
directory entry for a file is present, but the file is not-the file will be
ignored by ncheck.




Processed November 8, 1990        NCHECK(8,C)                                 1





NCHECK(8,C)                 AIX Commands Reference                  NCHECK(8,C)



FLAGS

-a             Lists includes the file names . (dot) and .. (dot dot).

-i  inumber... Lists only the files specified by inumber.

-s             Lists only special files and files with set-user-ID mode.

EXAMPLES

  1. To list the i-number and path name of each file in the default file
    systems:

      ncheck

  2. To list all the files in a specified file system:

      ncheck  -a  /

    This lists the i-number and path name of each file in the root file system
    (/), including the . (dot) and .. (dot-dot) entries in each directory
    ("-a").

  3. To list the name of a file when you know its i-number:

      ncheck  -i  690  357  280  /diskette0

    This lists the i-number and path name for every file in the file system
    /diskette0 with i-numbers of "690", "357", or "280".  If a file has more
    than one link, all of its path names are listed.

  4. To list special and set-user-ID files:

      ncheck  -s  /

    This lists the i-number and path name for every file in the root file
    system that is a special file (also called a device file) or that has
    set-user-ID mode enabled.

FILES

/etc/filesystem

RELATED INFORMATION

See the following commands:  "fsck, dfsck" and "sort."

See filesystems in the AIX Technical Reference.







Processed November 8, 1990        NCHECK(8,C)                                 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026