Linux how to save output of a command in a file code example Example: how to save a text file with a terminal command echo "insert text here" > filename.txt