xref: /openbsd/sbin/ncheck_ffs/ncheck_ffs.8 (revision d485f761)
1.\"	$OpenBSD: ncheck_ffs.8,v 1.13 2001/08/02 18:37:34 mpech Exp $
2.\"
3.\" Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"      This product includes software developed by SigmaSoft, Th. Lockert
17.\" 4. The name of the author may not be used to endorse or promote products
18.\"    derived from this software without specific prior written permission
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30.\"
31.Dd June 24, 1996
32.Dt NCHECK_FFS 8
33.Os
34.Sh NAME
35.Nm ncheck_ffs
36.Nd generate names from inode-numbers
37.Sh SYNOPSIS
38.Nm ncheck_ffs
39.Op Fl i Ar numbers
40.Op Fl ams
41.Ar filesystem
42.Sh DESCRIPTION
43.Nm
44generates a list of filenames and inode numbers for the given
45file system.
46Names of directories are followed by a
47.Dq \&. .
48.Pp
49The options are as follows:
50.Bl -tag -width Ds
51.It Fl i Ar numbers
52Report only those files whose inode numbers follows.
53.It Fl a
54Print the file names
55.Dq \&.
56and
57.Dq \&.\&. ,
58which are ordinarily skipped.
59.It Fl m
60Give more verbose information on inodes
61.It Fl s
62Report only special files and files with set-user-ID or set-group-ID
63set.
64This is meant to find hidden violations of security policies.
65.El
66.Pp
67The report is not sorted.
68.Sh SEE ALSO
69.Xr sort 1 ,
70.Xr fsck 8
71.Sh HISTORY
72The
73.Nm
74command was designed to be similar in functionality to the corresponding
75command in
76.Tn "SunOS 4.1.3" .
77.Sh AUTHORS
78Thorsten Lockert <tholo@sigmasoft.com>
79