[ Previous | Next | Table of Contents | Index | Library Home |
Commands Reference, Volume 4
Generates path names from i-node
ncheck [ [ [ -a ] [ -i InNumber ... ] ] | [
-s ] ]
[ FileSystem ]
The ncheck command
displays the i-node number and path names for filesystem files. It uses
question marks (??) displayed in the path to indicate a component that could
not be found. Path names displayed with ...
(ellipses) at the beginning indicate either a loop or a path name of greater
than 10 entries. The ncheck command uses a simple hashing
alogrithm to reconstruct the path names that it displays. Because of
this, it is restricted to filesystems with less than 50,000 directory
||Lists the . (dot) and .. (dot dot) file
||Lists only the file or files specified by the InNumber
||Lists only special files and files with set-user-ID mode.
- To list the i-node number and
path name of each file in the default file systems, enter:
- To list all the files in a
specified file system, enter:
ncheck -a /
This lists the i-node number and path name of each file in the
/ (root) file system, including the .(dot) and
.. (dot dot) entries in each directory.
- To list the name of a file
when you know its i-node number, enter:
ncheck -i 690 357 280 /tmp
This lists the i-node number and path name for every file in the
/tmp file system with i-node numbers of 690,
357, or 280. If a file has more than one link,
all of its path names are listed.
- To list special and
set-user-ID files, enter:
ncheck -s /
This lists the i-node 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.
The fsck command, sort
The File Systems
Overview for System Management in AIX 5L Version 5.1 System
Management Guide: Operating System and Devices.
[ Previous | Next | Table of Contents | Index |
Library Home |