Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

find

ncheck



FF(8,C)                     AIX Commands Reference                      FF(8,C)



-------------------------------------------------------------------------------
ff



PURPOSE

Lists the file names and statistics for a file system.

SYNTAX


      +----------------------+   +------------+
ff ---| +------------------+ |---|            |-- device --|
      +-| -a num -n file   |-+   +- -i inode -+
       ^| -c num -p prefix ||         ^      |
       || -l     -s        ||         +--,---+
       || -m num -u        ||
       || -I               ||
       |+------------------+|
       +--------------------+


DESCRIPTION

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 inode data for files specified by flags.  The output from the
ff command consists of the path name for each saved inode, in addition to other
file information that you request with the flags.  The output is listed in
order by inode number, with tabs between all fields.  The default line produced
by the ff command 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
inode with more than one link, unless you specify the -l flag.  With this flag,
the ff command 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 the ff command finishes.

If device names a copy of a replicated file system, only files actually stored
in this copy of the file system are listed.  In particular, if a directory
entry for a file is present but the file is not present, the file is ignored by
ff.

FLAGS





Processed November 8, 1990          FF(8,C)                                   1





FF(8,C)                     AIX Commands Reference                      FF(8,C)



-a  num     Gets selected if the inode has been accessed in num days.

-c  num     Gets selected if the inode has been changed in num days.

-i  inode   Generates names for only those inodes specified in the inode list.
            The maximum number of inodes for the PS/2 or 370 is 128.  For other
            machines, it is 64.

-I          Does not display the inode number after each path name.

-l          Generates a list of all path names for files, including those with
            more than one link.

-m  num     Selects if the file associated with the inode has been modified in
            num days.

-n  file    Selects if the file associated with the inode 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/hd1

    This command displays the path names of the files on the "/dev/hd1" disk.
    If you do not specify the "-I" flag, the ff command also displays the
    i-number of each file.

  2. To list files that have been modified recently:

      ff  -m  -2  -u  /dev/hd1

    This command displays the path name, i-number, and owner's user name ("-u")
    of each file on the "/dev/hd1" disk 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/hd1

    This command 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 inodes:



Processed November 8, 1990          FF(8,C)                                   2





FF(8,C)                     AIX Commands Reference                      FF(8,C)




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

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

RELATED INFORMATION

See the following commands:  "find" and "ncheck."














































Processed November 8, 1990          FF(8,C)                                   3



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