Write the kernel messages to stdout. More information: https://www.unix.com/man-page/sunos/1m/dmesg.
stdout
dmesg
dmesg | grep -i memory
dmesg | less