Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ncheck(8) [osf1 man page]

ncheck(8)						      System Manager's Manual							 ncheck(8)

NAME
ncheck - lists i-number or tag and path name for files in a local file system. SYNOPSIS
/usr/sbin/ncheck [-i numbers] [-asm] file_spec [file_spec...] PARAMETERS
Specifies one or more file systems. Specify any file system by entering its full path name or its mount point. The full path name is the name entered in the file-spec field of the file system's entry in the /etc/fstab file. The mount point is the name entered in the mnt_point field of the file system's entry in the /etc/fstab file. You can also specify a UFS file system by entering the name of its device special file. For example: /dev/disk/dsk3c. You can also specify an AdvFS fileset by entering the name of the file domain, a pound sign (#) character, and the name of the file- set. For example: root_domain#root. FLAGS
Includes in the list the path names . (dot) and .. (dot dot), which are ordinarily suppressed. Lists only those files with the specified i-numbers (UFS) or tags (AdvFS). If you enter a zero (0) all allocated numbers will be displayed. Includes in the list the mode, UID, and GID of the files. To use this flag you must also specify either the -i or the -s flag on the command line. Lists only the special files and files with set-user-ID mode. DESCRIPTION
The ncheck command with no flags generates a list of all files on every specified file system. The list includes the path name and the corresponding i-number or tag of each file. Each directory file name in the list is followed by a /. (slash dot). Use the available flags to customize the list to include or exclude specific types of files. The files are listed in order by i-number or tag. To sort the list in a more useful format, pipe the output to the sort command. NOTES
The term file_spec represents either a UFS file system or an AdvFS fileset. To uncover concealed violations of security policy, that is, the inappropriate use of the set-user-ID mode, issue the command with the -s flag to list only special files and files with set-user-ID mode. RESTRICTIONS
You must be the root user to use this command. The ncheck command checks the /etc/fstab file for the specified domain and file system entry. If there is no entry in /etc/fstab for the specified file system, an error message is displayed to indicate that the file does not exist. DIAGNOSTICS
When the file system structure is improper, ?? (question mark question mark) denotes the parent of a parentless file. A path name begin- ning with ... (dot dot dot) denotes a loop. ERRORS
The ncheck command can be used only for checking local file systems. The "nnn" string identifies the file system type. FILES
Specifies the command path RELATED INFORMATION
sort(1), quot(8). delim off ncheck(8)

Check Out this Related Man Page

ncheck(1M)						  System Administration Commands						ncheck(1M)

NAME
ncheck - generate a list of path names versus i-numbers SYNOPSIS
ncheck [-F FSType] [-V] [generic_options] [-o FSType-specific_options] [special...] DESCRIPTION
ncheck with no options generates a path-name versus i-number list of all files on special. If special is not specified on the command line the list is generated for all specials in /etc/vfstab which have a numeric fsckpass. special is the raw device on which the file system exists. OPTIONS
-F Specify the FSType on which to operate. The FSType should either be specified here or be determinable from /etc/vfstab by finding an entry in the table that has a numeric fsckpass field and an fsckdev that matches spe- cial. -V Echo the complete command line, but do not execute the command. The command line is generated by using the options and arguments provided by the user and adding to them information derived from /etc/vfstab. This option may be used to verify and validate the command line. generic_options Options that are commonly supported by most FSType-specific command modules. The following options are available: -i i-list Limit the report to the files on the i-list that follows. The i-list must be separated by commas with no intervening spaces. -a Print the names "." and ".." which are ordinarily suppressed. -s Report only special files and files with set-user-ID mode. This option may be used to detect viola- tions of security policy. -o Specify FSType-specific_options in a comma separated (without spaces) list of suboptions and keyword-attribute pairs for interpretation by the FSType-specific module of the command. USAGE
See largefile(5) for the description of the behavior of ncheck when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes). FILES
/etc/vfstab list of default parameters for each file system ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
vfstab(4), attributes(5), largefile(5) Manual pages for the FSType-specific modules of ncheck NOTES
This command may not be supported for all FSTypes. SunOS 5.10 30 May 2001 ncheck(1M)
Man Page