LinuxCommandLibrary

fincore

page cache inspector for files

TLDR

Display cache details for a file

$ fincore [path/to/file]
copy
Display all possible data columns
$ fincore --output-all [path/to/file]
copy
Display help
$ fincore [-h|--help]
copy

SYNOPSIS

fincore [options] files

DESCRIPTION

fincore displays how much of a file is currently cached in memory by the kernel's page cache. It shows the number of pages and bytes cached.
Useful for understanding memory usage and cache behavior.

PARAMETERS

--output-all

Show all available columns
-o, --output list
Specify output columns
-h, --help
Display help
--bytes
Show sizes in bytes

CAVEATS

Part of util-linux. Shows point-in-time snapshot of cache state. Cache contents change dynamically based on system activity.

SEE ALSO

fadvise(1), vmtouch(1), free(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community