Tip 311Record Your Terminal Work

Ever wanted to save your work at the command line, perhaps for showing others? Just hit Command+S (or ShellExport Text As) to save all the commands plus output as a text file (that is, everything you see by scrolling up and down to the top and bottom of the window, including any work from the previous session that usually appears grayed out).

Get Mac Kung Fu, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.