Answers for "how to print output of a command to a file in linux"

0

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
Posted by: Guest on March-28-2021

Code answers related to "how to print output of a command to a file in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language