Answers for "linux redirect output to file"

2

linux redirect output to file

#Redirect data to a file
SomeCommand > SomeFile.txt  

#Or if you want to append data:
SomeCommand >> SomeFile.txt

#If you want stderr as well use this:
SomeCommand &> SomeFile.txt
Posted by: Guest on May-03-2021

Code answers related to "linux redirect output to file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language