fbdump

captures the contents of the visible portion of the Linux framebuffer to stdout

Arch Arch Linux
RUN pacman -S --noconfirm fbdump
click the source code to copy install fbdump on any operating system with command-not-found.com