jade on Nostr: obscure #linux command of the day: script(1) it lets you log input and output of a ...
obscure #linux command of the day: script(1)
it lets you log input and output of a terminal session. this already has loads of uses (auditing admin sessions, etc etc), but it lets you get timing info as well and use scriptreplay(1) to replay an interactive terminal session like asciinema. this program is in util-linux so it's everywhere.
I've used it for diagnosing neovim terminal sequence misbehaviour, by bisecting the output to find the offending escape codes.
https://man.archlinux.org/man/script.1.en
it lets you log input and output of a terminal session. this already has loads of uses (auditing admin sessions, etc etc), but it lets you get timing info as well and use scriptreplay(1) to replay an interactive terminal session like asciinema. this program is in util-linux so it's everywhere.
I've used it for diagnosing neovim terminal sequence misbehaviour, by bisecting the output to find the offending escape codes.
https://man.archlinux.org/man/script.1.en