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.