Mac x-os log terminal session to file

You can start logging at any time during the terminal session by typing:

script terminal.log

To stop logging, type command:

exit

Log file will be recorded in your home folder.

Advertisements