fadvise(1) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXIT STATUS | AUTHORS | SEE ALSO | REPORTING BUGS | AVAILABILITY

FADVISE(1)                    User Commands                   FADVISE(1)

NAME         top

       fadvise - utility to use the posix_fadvise system call

SYNOPSIS         top

       fadvise [-a advice] [-o offset] [-l length] filename

       fadvise [-a advice] [-o offset] [-l length] -d file-descriptor

DESCRIPTION         top

       fadvise is a simple command wrapping posix_fadvise system call
       that is for predeclaring an access pattern for file data.

OPTIONS         top

       -d, --fd file-descriptor
           Apply the advice to the file specified with the file
           descriptor instead of open a file specified with a file name.

       -a, --advice advice
           See the command output with --help option for available
           values for advice. If this option is omitted, "dontneed" is
           used as default advice.

       -o, --offset offset
           Specifies the beginning offset of the range, in bytes. If
           this option is omitted, 0 is used as default advice.

       -l, --length length
           Specifies the length of the range, in bytes. If this option
           is omitted, 0 is used as default advice.

       -h, --help
           Display help text and exit.

       -V, --version
           Print version and exit.

EXIT STATUS         top

       fadvise has the following exit status values:

       0
           success

       1
           unspecified failure

AUTHORS         top

       Masatake YAMATO <yamato@redhat.com>

SEE ALSO         top

       posix_fadvise(2)

REPORTING BUGS         top

       For bug reports, use the issue tracker at
       https://github.com/util-linux/util-linux/issues.

AVAILABILITY         top

       The fadvise command is part of the util-linux package which can
       be downloaded from Linux Kernel Archive
       <https://www.kernel.org/pub/linux/utils/util-linux/>. This page
       is part of the util-linux (a random collection of Linux
       utilities) project. Information about the project can be found at
       ⟨https://www.kernel.org/pub/linux/utils/util-linux/⟩. If you have
       a bug report for this manual page, send it to
       util-linux@vger.kernel.org. This page was obtained from the
       project's upstream Git repository
       ⟨git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git⟩ on
       2023-12-22. (At that time, the date of the most recent commit
       that was found in the repository was 2023-12-14.) If you discover
       any rendering problems in this HTML version of the page, or you
       believe there is a better or more up-to-date source for the page,
       or you have corrections or improvements to the information in
       this COLOPHON (which is not part of the original manual page),
       send a mail to man-pages@man7.org

util-linux 2.39.594-1e0ad      2023-07-19                     FADVISE(1)