Have you ever wondered how you can easily capture a console session on Linux (and probably most other Unix-like OSes) without the need for special video recording software?
Here's how: you can use the script(1) command (part of the bsdutils package).
script command. Without parameters the sessions will be logged to a file called typescript. You can also supply a filename on the command line: script mysession.log.exit or CTRL-d.less -r mysession.log (it contains line feeds, escape sequences etc., so a simple text viewer will probably display garbage). You can even print it with lpr(1). Or simply display it on the terminal with cat mysession.log.An even cooler feature is that you can replay a script with the correct timing information:
-t switch: script -t 2>mysession.timing mysession.log.scriptreplay mysession.timing mysession.log.See the script(1) and scriptreplay(1) manpages for more details.
Recent comments
21 weeks 15 hours ago
47 weeks 2 days ago
1 year 2 weeks ago
1 year 3 weeks ago
1 year 3 weeks ago