write terminal output to file code example Example: linux terminal write output to file SomeCommand > SomeFile.txt