getconf
getconf is a Unix utility that queries runtime system configuration values as exposed by the C library. It is standardized in POSIX and is available on many Unix-like systems, including Linux, macOS, and BSD variants. The program reads values that influence program behavior and resource limits without requiring the inclusion of header files.
Usage: The general syntax is getconf [ -a ] name [ pathname ]. The name identifies a configuration variable, often
Examples: getconf LONG_BIT prints 64 on a 64-bit system. getconf PATH_MAX prints the maximum length of a
Notes: Not all variables are defined on all systems; unknown names cause an error. The values are