better heuristic
[unix-history] / usr / src / sbin / ncheck / ncheck.8
CommitLineData
5bd84e21
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
227c64e4 5.\" @(#)ncheck.8 6.2 (Berkeley) %G%
5bd84e21 6.\"
2651fe1f 7.TH NCHECK 8 ""
5bd84e21
KM
8.UC 4
9.SH NAME
227c64e4 10ncheck \- generate names from i-numbers
5bd84e21
KM
11.SH SYNOPSIS
12.B /etc/ncheck
13[
14.B \-i
227c64e4 15numbers ] [
5bd84e21
KM
16.B \-a
17] [
18.B \-s
227c64e4 19] filesystems ...
5bd84e21
KM
20.SH DESCRIPTION
21.B N.B.:
22For most normal file system maintenance, the function of
23.I ncheck
24is subsumed by
25.IR fsck (8).
26.PP
27.I Ncheck
227c64e4 28with no options
5bd84e21
KM
29generates a pathname vs. i-number
30list of all files
227c64e4 31on every specified filesystem.
5bd84e21
KM
32Names of directory files are followed by `/\fB.\fR'.
33The
34.B \-i
35option reduces the report to only those files whose i-numbers follow.
36The
37.B \-a
38option
39allows printing of the names
40.RB ` . '
41and
42.RB ` .. ',
43which are ordinarily suppressed.
5bd84e21
KM
44The
45.B \-s
46option reduces the report to special files
47and files with set-user-ID mode;
48it is intended to discover concealed violations
49of security policy.
50.PP
5bd84e21
KM
51The report is in no useful
52order, and probably should be sorted.
53.SH "SEE ALSO"
54sort(1), dcheck(8), fsck(8), icheck(8)
55.SH DIAGNOSTICS
56When the filesystem structure is improper,
57`??' denotes the `parent' of
58a parentless file and
59a pathname beginning with `...' denotes a loop.