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
Comments
1) Whenever building anything;
<make/build script> 2>&1 | tee build.log | grep <whatever>
2) Do everything within GNU Screen window with CTRL-A + Shift-H to log all output to logfile i.e. "screenlog.<window num>".
Both lifesavers when working with multiple systems and codebases.
3) Always use "set -o vi" with bash so that i can use vi/vim keybindings across everything.
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