O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Recording and playback of terminal sessions

When you need to show somebody how to do something in the terminal or you need to prepare a tutorial on how to do something through command line, you would normally type the commands manually and show them. Or you could record a screencast video and playback the video to them. What if we can record the order and timing of the commands that we typed before and replay these commands again so that others can watch as if they were typing? The output of the commands gets displayed on the terminal until the playback is complete. Sounds interesting? It can be done using the commands script and scriptreplay.

Getting ready

script and scriptreplay commands are available in most of the GNU/Linux distributions. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required