FADVISE(1)
โจ fadvise โ the girlies' guide โจ
okay so bestie, welcome to fadvise(1) ๐ this is a User Commands manual page, and it's about a lil utility that uses the posix_fadvise(2) system call. yes it's a real thing. yes it's giving kernel-adjacent main character energy. let's get into it ๐ซถ
๐ธ NAME ๐ธ
fadvise โ a utility to use the posix_fadvise(2) system call โจ
๐ SYNOPSIS ๐
fadvise [-a advice] [-o offset] [-l length] filename
fadvise [-a advice] [-o offset] [-l length] -d file-descriptor
two whole ways to run her. pick your fighter ๐
๐ฆ DESCRIPTION ๐ฆ
so fadvise is a simple command that wraps the posix_fadvise(2) system call, and what that call does is predeclare an access pattern for file data. that's it. that's the whole vibe. you're basically telling the kernel "hey girl, here's how i'm gonna be reading this file, just so you know" ๐ฅ
๐ OPTIONS ๐
-d,--fdfile-descriptor โ apply the advice to the file specified with the file descriptor instead of opening a file specified with a file name. fd girlies, this one's for you ๐ซถ-a,--adviceadvice โ the actual advice you're handing over. peep the command output with the--helpoption to see the available values for advice, bestie, because that's where they live. if you omit this option,dontneedis used as the default advice. no cap ๐-o,--offsetoffset โ specifies the beginning offset of the range, in bytes. if you omit this option,0is used as default advice. (yes, it says "default advice" in the original and we are respectfully passing that along verbatim ๐ญ)-l,--lengthlength โ specifies the length of the range, in bytes. if you omit this option,0is used as default advice. same energy, same wording, iconic ๐-h,--helpโ display help text and exit. the classic.-V,--versionโ display version and exit. also the classic.
โญ EXIT STATUS โญ
fadvise has the following exit status values:
0โ success ๐ ate, no crumbs1โ unspecified failure ๐ not the vibe
๐ AUTHORS ๐
Masatake YAMATO <yamato@redhat.com>
๐ SEE ALSO ๐
๐ REPORTING BUGS ๐
for bug reports, use the issue tracker: <https://github.com/util-linux/util-linux/issues>.
bestie if something's broken, tell the tracker, not me ๐ญ i am simply the messenger ๐ง
๐ธ AVAILABILITY ๐ธ
the fadvise command is part of the util-linux package, which can be downloaded from the Linux Kernel Archive: <https://www.kernel.org/pub/linux/utils/util-linux/>.
and that's the whole page, you're so welcome ๐ this lil writeup came to you courtesy of util-linux 2.42.4, dated 2026-09-21 โ periodt, go fadvise something ๐ โจ
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms