Hacker News new | past | comments | ask | show | jobs | submit login
How to Record Everything You Do in Terminal (ostechnix.com)
33 points by Jarqwiz on Oct 24, 2019 | hide | past | favorite | 4 comments



For more utility, enable (and save) timings using the '-t' or '--timings <file>' option.

You can then replay the session, in realtime, or with some multiplier (slower or faster), using scriptreplay(1). An advantage is that full-screen utilities will be fully captured.

I've used this technique, and serial connections (zmodem, minicom, serial-over-ethernet, many ILOM/IPMI/BMC systems) to record full system installs, starting at BIOS prompts and configuration utilities.

Replaying the session through the phosphor(6x) screensaver can be entertaining.

http://man7.org/linux/man-pages/man1/script.1.html

http://man7.org/linux/man-pages/man1/scriptreplay.1.html

http://manpages.ubuntu.com/manpages/trusty/man6/phosphor.6x....


On macOS and BSD at least (I haven't checked GNU), you can make a replayable script.

Record with

    script -r [filename]
and then play back with

    script -p [filename]
which creates a pretty cool effect.



With iTerm there is also an alternative approach.

You can enable 'Automatically log session input to files' in Preferences -> Profiles -> Session




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: