HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fadvise — Control Linux file caching behavior. See also: `fincore`. More information: <https://manned.org/fadv

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandcachingbehaviorclifilecontrollinuxfadvise
linux

Problem

How to use the fadvise command: Control Linux file caching behavior. See also: fincore. More information: <https://manned.org/fadvise>.

Solution

fadvise — Control Linux file caching behavior. See also: fincore. More information: <https://manned.org/fadvise>.

Preload a file or directory into cache:
fadvise {{[-a|--advice]}} willneeded {{path/to/file_or_directory}}


Suggest dropping a file from cache:
fadvise {{path/to/file}}


Display help:
fadvise {{[-h|--help]}}

Code Snippets

Preload a file or directory into cache

fadvise {{[-a|--advice]}} willneeded {{path/to/file_or_directory}}

Suggest dropping a file from cache

fadvise {{path/to/file}}

Display help

fadvise {{[-h|--help]}}

Context

tldr-pages: linux/fadvise

Revisions (0)

No revisions yet.