What is Nostr?
jade /
npub1mal…dszj
2024-02-11 09:49:52

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
Author Public Key
npub1maljd7jkg9fndyfy4na6mkqw0k4557ht4zsjc50u5v88g8pfup3q4xdszj