mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 04:43:15 +00:00
23 lines
439 B
Plaintext
23 lines
439 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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]}}`
|