- Linux Shell Scripting Cookbook(Third Edition)
- Clif Flynt Sarath Lakshman Shantanu Tushar
- 69字
- 2021-07-09 19:46:12
Recording and playing back terminal sessions
Recording a screen session as a video is useful, but a video is an overkill for debugging terminal sessions or providing a shell tutorial.
The shell provides another option. The script command records your keystrokes and the timing of keystrokes as you type, and saves your input and the resulting output in a pair of files. The scriptreplay command will replay the session.