[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how can I find the terminal output
From: |
Gottfried |
Subject: |
Re: how can I find the terminal output |
Date: |
Fri, 6 May 2022 20:18:40 +0000 |
Hello,
Don't mind if I am asking simple questions because I have to learn the
basics.
How do I have to use "script"?
Do I have to enter "script" in the terminal before I start other
commands, so that it will start to log my shell?
or can I, after a command with output, enter "script" and it will log my
output in a file typescript?
I tried several times, but it didn't work. It didn't record anything,
when I opened the file typescript.
So can you show me an example how to use it?
What Options are useful?
Gottfried
Am 02.05.22 um 14:53 schrieb Tobias Geerinckx-Rice:
Gottfried,
script(1) is the classic way to log your shell (or any) session to a text file.
See <https://www.man7.org/linux/man-pages/man1/script.1.html>.
There's more fancy stuff like asciinema but that seems like overkill here.
Kind regards,
T G-R
Sent on the go. Excuse or enjoy my brevity.
OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature