Capturing Screen Content To A File
From FreeBSDwiki
Capturing Screen Content To A File
Sometimes you may want to capture everything that displays on the console screen to a file. This is really useful in making a record of what you are doing that you can review later if there is a problem. Use the script command like this:
script /root/console.log
When finished 'enter exit' to stop recording all console messages to the file.