linux put output command in txt code example
Example: how to print output of a command to a file in linux
# To Save output of a command to a file in linux you need to
# add '> filename' to the end of the command like below
# Examples :
$ ls > output.txt
$ grep -inR "something" . > output.txt