Just another note to self here:
./[program] [arguments] | tee [filename.txt]
Run program with arguments, use pipe “|” and the program named “tee” to output do both stdout and a particular file. Great for logging terminal programs.
-aAppends the output to the end of File instead of writing over it.
Since it’s a GNU-core utility, “man tee” gives a manual of the program.