From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Recording a terminal session

Recording a terminal session - Linux Tutorial

From the course: Linux Tips

Recording a terminal session

- [Instructor] When you're working in the terminal and need to keep a record of what you've done and what the output was, there's a utility that can help you out. It's called script and it records your input and the system's output into a text file. And optionally, you can also record a timing file, so your terminal session can be played back as well. Let's take a look at recording a terminal session. To start recording what appears on screen, I'll type script and provide a name for an output file, like mysession. Now I'll do a few things like change the directory, list the directory, move somewhere else, and update my software sources. And I'll peek at a configuration file. Okay, I'm done now. And to end the recording, I'll press Control D. Now, I have a file here with a record of what I just did. Let's take a look at it. While some of this looks recognizable, like the command cd /var, ls and so on, there's a bit of other…

Contents