I have a command that I run a lot which I like to direct it's output to a file. I do this like so:
runFooBar > output.txt 2>&1
Is there a way that I can write the runFooBar output to the file output.txt while still being able to see the output in standard out/error while the command is running?
I run this on Linux and OS X machines.