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 - 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
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Exploring Windows Subsystem for Linux2m 20s
-
(Locked)
Windows Subsystem for Linux7m 20s
-
(Locked)
Exploring virtualization5m 28s
-
(Locked)
Exploring containers5m 19s
-
(Locked)
Exploring Fedora3m 8s
-
(Locked)
Ubuntu desktop 18.042m
-
(Locked)
Changing the default shell3m 30s
-
(Locked)
Exploring other shells2m 5s
-
(Locked)
Blocking ads on your network with Pi-hole6m 35s
-
(Locked)
Exploring CentOS2m 6s
-
(Locked)
Exploring Zsh5m 41s
-
(Locked)
Osquery4m 28s
-
(Locked)
Exploring fish5m 21s
-
Exploring csh and tcsh2m 34s
-
(Locked)
Using diff to compare files3m 54s
-
(Locked)
Using xargs3m 41s
-
(Locked)
Configuring and managing logs4m 32s
-
(Locked)
Job control3m 59s
-
(Locked)
Using watch and time3m 5s
-
(Locked)
Recording a terminal session3m 14s
-
(Locked)
Exploring Debian1m 49s
-
(Locked)
Exploring SUSE Linux7m 33s
-
(Locked)
Exploring Arch Linux16m 44s
-
(Locked)
Exploring Alpine Linux6m 18s
-
(Locked)
Exploring Linux Mint5m 14s
-
(Locked)
Exploring Amazon Linux5m 8s
-
(Locked)
UNIX time and the 2038 problem6m 36s
-
(Locked)
Visual file management with Midnight Commander5m 42s
-
(Locked)
Terminal on the go5m 1s
-
(Locked)
FUSE and SSHFS3m 54s
-
(Locked)
Removing Linux4m 44s
-
(Locked)
WSL distros on Windows 103m 13s
-
(Locked)
Embedded Linux4m 25s
-
(Locked)
Exploring Netboot2m 43s
-
(Locked)
Exploring ZFS3m 53s
-
(Locked)
Docker on Linux5m 24s
-
(Locked)
-
-