Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ff(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

find

ncheck

ff

PURPOSE

     Lists the file names and statistics for a file system.

SYNOPSIS
     ff [ [ flags[options] ] ] [ device ]

DESCRIPTION

     Warning:   This  program is  not  intended  for use  with
     diskette-based file systems because  of the difference in
     superblock structure  and the general format  of the file
     system.

     The ff command reads the i-list and directories specified
     by device  and writes information about  them to standard
     output.  It  assumes that  device is  a file  system, and
     saves  i-node data  for  files specified  by flags.   The
     output from the ff command  consists of the path name for
     each saved i-node, in  addition to other file information
     that you request with the flags.  The output is listed in
     order  by i-node  number, with  tabs between  all fields.
     The default  line produced by  ff includes the  path name
     and i-number fields.  With  all flags enabled, the output
     fields include path name, i-number, size, and UID.

     The num parameter in the  flags descriptions is a decimal
     number, where +num  means more than num,  -num means less
     than num, and num means exactly num.  A day is defined as
     a 24-hour period.

     The ff command lists only a  single path name out of many
     possible  ones for  an i-node  with more  than one  link,
     unless you specify  the -l flag.  With -l,  ff applies no
     selection  criteria to  the names  listed.  All  possible
     names  for  every linked  file  on  the file  system  are
     included  in the  output.   On very  large file  systems,
     memory may run out before ff does.

FLAGS

     -a  num     Selects if  the i-node  has been  accessed in
                 num days.
     -c  num     Selects if the i-node has been changed in num
                 days.
     -i  i-node  Generates names for only those i-nodes speci-
                 fied in the inode list.
     -I          Does not display the i-node number after each
                 path name.
     -l          Generates a list of  all path names for files
                 with more than one link.

     -m  num     Selects  if  the  file  associated  with  the
                 i-node has been modified in num days.
     -n  file    Selects  if  the  file  associated  with  the
                 i-node has  been modified more  recently than
                 the specified file.
     -p  prefix  Adds the specified prefix  to each path name.
                 The default prefix is . (dot).
     -s          Writes the  file size,  in bytes,  after each
                 path name.
     -u          Writes the owner's login name after each path
                 name.

EXAMPLES

     1.  To list the  path names of all files in  a given file
         system:

           ff  -I  /dev/hd0

         This  displays the  path names  of the  files on  the
         "/dev/hd0"  disk.  If  you  do not  specify the  "-I"
         flag,  then ff  also  displays the  i-number of  each
         file.
     2.  To list files that have been modified recently:

           ff  -m  -2  -u  /dev/hd0

         This displays  the path  name, i-number,  and owner's
         user name ("-u") of each  file on "/dev/hd0" that has
         been modified within the last two days ("-m -2").
     3.  To list files that have not been used recently:

           ff  -a  +30  /dev/hd0

         This displays the path name and i-number of each file
         that  was  last  accessed   more  than  30  days  ago
         ("-a +30").
     4.  To find out the path names of certain i-nodes:

           ff  -l  -i  451,76  /dev/hd0

         This displays  all the  path names  ("-l") associated
         with i-nodes "451" and "76".

RELATED INFORMATION

     The following commands:  "find" and "ncheck."

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026