print and append to file linux code example Example: how to append program output to file linux java AccessBSTApp | tee -a BSTAppCaseThree.out