I viewed this question to redirect text to file while displaying the output. My question is how can I redirect it while working AND without constant
| tee command.
My plan is to use this question to identify terminal (Gnome or Guake) and record only Gnome for my Linux commands testing. So I need constant and immediate redirecting of commands and their outputs (with errors) to a file (say cmdlog.log).