I need to save the whole output of Screen to a file to check later all the content.
The reason is that I\'m dumping a flash memory through a serial port, using Scree
The following command works for Screen version 4.06.02:
screen -L -Logfile Log_file_name_of_your_choice command_to_be_executed
From the man page of Screen:
-Logfile file : By default logfile name is "screenlog.0".
You can set new logfile name with the "-Logfile" option.
You can check the existing version of Screen using screen -version. You can download and install the latest Screen version from https://www.gnu.org/software/screen/.