LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit, <CR> - to continue
SYNTAX
SYNTAX
ncheck [-i numbers] [-a] [-s] [file system]
OPTIONS
-i - reduces the report to only those files whose inode numbers follow
-a - allow printing of the names . and .. which are
ordinarily suppressed.
-s - reduces report to special files and files with setuid mode;
NOTE: A report for a single file system is printed when a file system name
is specified rather than the default list of mounted file systems.
NODELIST
/dev/u:
3 /miked/.
6 /cti/.
4 /miked/.cshrc
:
7 /cti/.cshrc
55 /cti/doc/.
58 /cti/softools/.
839 /cti/861/.
918 /cti/862/.
200 /cti/to_unix
112 /cti/adv_admin/9sa_mail
113 /cti/adv_admin/9sa_uucico
SNODES
/dev/root:
10 /bin/mkdir
175 /etc/mount
52 /dev/u
53 /dev/ru
215 /dev/lp0
218 /dev/tty02
219 /dev/tty03
232 /dev/rfd048ds8
245 /dev/rfd096ds9
249 /dev/fd096ds9
548 /usr/bin/uucp
37 /miked/bin/flip_col.c
143 /cti/861/4uu_lpr
INODES
/dev/root:
15 /etc/haltsys
257 /etc/mnttab
355 /usr/sys/sys/.
/dev/u:
15 /miked/doc/print_memo
355 /emacs/databases/test.o/.
257 /cti/862/3auu_diff
GO
The command /etc/ncheck prints the inode numbers and the corresponding
file names for the specified files, and/or the inodes on the specified file
systems. If no arguments are specified ncheck will print the
information on all the files on all mounted file systems. This information
is often used in system debugging, especially in a corrupted file system.
Let us analyze above the ncheck command syntax
and some of the command flags!
The list produced is often quite lengthy and the
command may take a significant amount of time.
Let us see the list of inodes and
the file names on the file system
/dev/u by typing the appropriate
command at the prompt.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ncheck /dev/u
Please type ncheck /dev/u
You will be helped this time!
$PROMPT$
FORGET1
ncheck /dev/u
Please observe the result above:
First with "-i"!
Let us now print the list of all
special files and files with set
user-ID mode on the file system
/dev/u!
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ncheck -s /dev/u
Please type ncheck -s /dev/u
You will be helped this time!
$PROMPT$
FORGET2
ncheck -s /dev/u
Please observe a typical result
above:
$PROMPT$
Now let us find out the names of
the files whose inode numbers are
15, 257 and 355
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ncheck 15 257 355
Please type ncheck 15 257 355
You will be helped this time!
$PROMPT$
FORGET3
ncheck 15 257 355
Please observe the result above!