1FADVISE(1)                       User Commands                      FADVISE(1)
2
3
4

NAME

6       fadvise - utility to use the posix_fadvise system call
7

SYNOPSIS

9       fadvise [-a advice] [-o offset] [-l length] filename
10
11       fadvise [-a advice] [-o offset] [-l length] -d file-descriptor
12

DESCRIPTION

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

OPTIONS

18       -d, --fd file-descriptor
19           Apply the advice to the file specified with the file descriptor
20           instead of open a file specified with a file name.
21
22       -a, --advice advice
23           See the command output with --help option for available values for
24           advice. If this option is omitted, "dontneed" is used as default
25           advice.
26
27       -o, --offset offset
28           Specifies the beginning offset of the range, in bytes. If this
29           option is omitted, 0 is used as default advice.
30
31       -l, --length length
32           Specifies the length of the range, in bytes. If this option is
33           omitted, 0 is used as default advice.
34
35       -h, --help
36           Display help text and exit.
37
38       -V, --version
39           Print version and exit.
40

EXIT STATUS

42       fadvise has the following exit status values:
43
44       0
45           success
46
47       1
48           unspecified failure
49

AUTHORS

51       Masatake YAMATO <yamato@redhat.com>
52

SEE ALSO

54       posix_fadvise(2)
55

REPORTING BUGS

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

AVAILABILITY

61       The fadvise command is part of the util-linux package which can be
62       downloaded from Linux Kernel Archive
63       <https://www.kernel.org/pub/linux/utils/util-linux/>.
64
65
66
67util-linux 2.39.2                 2023-06-14                        FADVISE(1)
Impressum