<<<<< LEFT_CLEAN SUBROUTINE >>>>>>>>>>>>>>>>>>>>>

LNEXT

                                      

ONELCLEAN

                                      

   <<<<< TERMINAL SCREEN DRAWING SUBROUTINE >>>>>>>>

UTERMINAL

                 TERMINAL               

NEXT

 $V1$
                                        
 <<<<<<< Standout Line Procedure >>>>>>>>>>

HILINE

                                                                               
     <<<<<< TIME POSE SUBROUTINE >>>>>>>>>

PAUSE

 q - to quit, <CR> - to continue 
If they want to quit, do so

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

 A List of nodes on a typical system!
  /dev/usr:
     548		/usr/.
     1069	/usr/jones/.
     825		/usr/smith/.
     835		/usr/smith/.cshrc
     837		/usr/smith/.login
     1177	/usr/smith/quest/.
     1070	/usr/jones/.cshrc
     1553	/usr/jones/.login
     1073	/usr/jones/insurance
     1075	/usr/jones/junk
     1905	/usr/jones/report
     1291	/usr/smith/quest/accept.c
      :                :

SNODES

 A list of special-devices files and "set-uid" type files!
  /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
   :         :

INODES

 A Typical list of files with requested inodes
  /dev/root:
  15	/etc/haltsys
  257	/etc/mnttab
  355	/usr/sys/sys/.
  /dev/usr:
  15	/smith/doc/print_memo
  355	/emacs/databases/test.o/.
  257	/cti/862/3auu_diff

GO

  Let's look at the way a file system translates file names into inodes.
  A directory is actually a file containing a table of information; for 
  each file in the directory there's an entry in the table with the file's 
  name and the inode number associated with it.  
        /usr/smith directory  
      -----------------------
      | filename  | inode # |
      -----------------------
      |   .cshrc  |     4   |
      |   .login  |     5   |
      |  summary  |   427   |
      |   report  |   345   |
      |  letter1  |   892   |
      |  letter2  |   904   |
      |  letter3  |   997   |
      |     :     |    :    |
       ----------------------
  When you type cat summary, the file system looks for the entry summary in the current 
  directory's table, finds the inode number associated with it, and starts 
  getting the blocks that contain the information in summary.
        /usr/smith directory  
      -----------------------
      | filename  | inode # |
      -----------------------
      |   .cshrc  |     4   |
      |   .login  |     5   |
      |  summary  |   427   |
      |   report  |   345   |
      |  letter1  |   892   |
      |  letter2  |   904   |
      |  letter3  |   997   |
      |     :     |    :    |
       ----------------------
  The command /etc/ncheck prints the inode numbers and the corresponding 
  file names for specified files, and/or the inodes on the specified file 
  systems.  If no arguments are specified ncheck will print the information 
  for all files on all mounted file systems.  This information is often 
  used in system debugging, especially for a damaged file system.  Let's 
  look at the command syntax for ncheck.
  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/usr 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 use ncheck on /dev/usr
 Please type ncheck /dev/usr
 You will be helped this time!
 $PROMPT$
                                 

FORGET1

 ncheck /dev/usr
 Please observe the result above:
 Let us now print the list of all
 special files and files with set
 user-ID mode on the file system
 /dev/root.
 $PROMPT$
 That is correct!
 You've got it on the 2nd try.
 Good, you understand the concept.
 Please use ncheck with the 
 -s option for /dev/root
 Please type ncheck -s /dev/root
 You will be helped this time!
 $PROMPT$
                                 

FORGET2

 ncheck -s /dev/root
 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 with the -i 
 option for inode numbers 15 257 355
 Please type ncheck -i 15 257 355
 You will be helped this time!
 $PROMPT$
                                 

FORGET3

 ncheck -i 15 257 355
 Please observe the result above!