Skip to content

Comment on Ask HN: What are your favorite one-liner shell commands you use?parent

Comments

GNU Screen window with CTRL-A + Shift-H to log all output to logfile

tmux users can use it's `capture-pane` command, either before or after the fact if history is set big enough. There are several helpful flags worth researching.

e.g. `tmux capture-pane -pS - > ~/tmux.log` in a shell to save the history of that pane, or just `prefix+: capture-pane ...` from within tmux

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.