"The chvt command changes the virtual terminal, and the sleep
command gives it a while to redraw the screen. The import command
then captures the whole display and saves it to a file before the
final chvt command sticks you back in the virtual terminal again.
Make sure you type the whole command on one line."