title: How do I view a log file generated by screen (screenlog.0)
body: <p>So I just found out I can create log files of everything I do in screen (C-a H). Sounds like a nice way to keep track of potential goofs in a particular screen session. However, when I went to try it out the logfile is reported as being a binary file (and can't be viewed like a regular text as such). So am I missing something? A quick man page looksee and searching Google (and SO) turns up nothing about this. </p>
  
  <p><strong>So my question is: How do I generate plain text log files in screen?</strong> </p>
  
  <p>Assuming the answer is "What a noob... how about you try making them? RTFM." my question becomes: How do I use less to view screen logfiles I've created (since <code>less screenlog.0</code> does not work on a binary file)?</p>
  
  <hr>
  
  <p><strong>EDIT:</strong> So <code>cat</code> works fine but <code>less</code> complains that the file is binary... why?</p>
  
  <hr>
  
  <p><strong>SOLUTION:</strong> as jcomeau_ictx helpfully pointed out, you can view these logfiles fine with <code>cat</code> or <code>more</code> but with <code>less</code> you must add the -r flag <code>less -r screenlog.0</code> </p>