Dieser Inhalt ist in der ausgewählten Sprache nicht verfügbar
Wir arbeiten ständig daran, Inhalte in der ausgewählten Sprache bereitzustellen. Vielen Dank für deine Geduld.
How can I record my Linux terminal session in text mode and share or replay it later?
Lesedauer: 2 Minute
0
I want to record my Amazon Elastic Compute Cloud (Amazon EC2) Linux terminal session or SSH session in text mode. Then, I want to share it or replay it.
Short description
You can record your SSH or terminal session to a file using the script command. If you need help, you can run the man script command to access the user manual.
Note: The Linux commands script and scriptreplay come pre-installed by default, so you don't need to install them separately. To reinstall them, run one of the following commands, depending on your operating system:
Ubuntu 18 and Ubuntu 20
sudo apt install bsdutils
RHEL 7, RHEL 8, Amazon Linux 1, Amazon Linux 2, and Amazon Linux 2023