ast@cs.vu.nl (Andy Tanenbaum) (12/17/90)
echo x - ncheck sed '/^X/s///' > ncheck << '/' X.CD "ncheck \(en i-node to name converter" X.SX "ncheck\fR [\fB\(eni\fI numbers\fR] [\fB\(ena\fR] [\fB\(ens\fR] \fIfile_system\fR" X.FL "\(ena" "List all files, even . and .." X.FL "\(eni" "Followed by a list of i-nodes" X.FL "\(ens" "List only special and setuid files" X.EX "ncheck \(en /dev/fd0" "List everything on \fI/dev/fd0\fR" X.EX "ncheck \(eni 10,15 /dev/fd0" "List i-nodes 10 and 15 on \fI/dev/fd0\fR" X.PP X\fISometimes one knows about an i-node number and wants to find the file Xname that goes with it. This program makes that mapping. XThe default is to list everything on the device, but the \fB\(eni\fR Xflag restricts the list to specified i-nodes and the \fB\(ens\fR flag Xrestricts it to special files and setuid files (to look for possible Xsecurity violations). / echo x - minimacros sed '/^X/s///' > minimacros << '/' X.de CD X.ne 2 X.if t .ta 0.9i 1.15i 2.75i 3.25i 3.75i X.if n .ta 11m 15m 40m X.nr x 0 0 X.nr y 0 0 X.nr z 0 0 X.if n #\\$1 X.if n .br X\\fBCommand:\& \\$1\\fR X.br X.. X.de SX X.if \\nx<=0 \\fBSyntax:\& \\$1 X.if \\nx>0 \& \\fB\\$1 X.nr x 1 1 X.br X.. X.de FL X.if \\ny<=0 \\fBFlags:\& \\fB\\$1 \\fR\\$2 X.if \\ny>0 \& \\fB\\$1 \\fR\\$2 X.nr y 1 1 X.br X.. X.de EX X.br X.nf X.if \\nz<=0 \\fB\&Examples: \\fR\\$1 \\fR# \\$2 X.if \\nz>0 \& \\fR\\$1 \\fR# \\$2 X.nr z 1 1 X.br X.. X.de EY X.br X.nf X.if \\nz<=0 \\fB\&Example: \\fR\\$1 \\fR# \\$2 X.if \\nz>0 \& \\fR\\$1 \\fR# \\$2 X.nr z 1 1 X.br X.. X /