lsmem --version (return code: 0)
lsmem from util-linux 2.30.1
lsmem --help (return code: 0)
Usage:
lsmem [options]
List the ranges of available memory with their online status.
Options:
-J, --json use JSON output format
-P, --pairs use key="value" output format
-a, --all list each individual memory block
-b, --bytes print SIZE in bytes rather than in human readable format
-n, --noheadings don't print headings
-o, --output <list> output columns
-r, --raw use raw output format
-s, --sysroot <dir> use the specified directory as system root
--summary[=when] print summary information (never,always or only)
-h, --help display this help and exit
-V, --version output version information and exit
Available columns:
RANGE start and end address of the memory range
SIZE size of the memory range
STATE online status of the memory range
REMOVABLE memory is removable
BLOCK memory block number or blocks range
NODE numa node of memory
For more details see lsmem(1).