How To Print Output Of A Command To A File

[Solved] How To Print Output Of A Command To A File | Basic - Code Explorer | yomemimo.com
Question : how to print output of a command to a file in linux

Answered by : afshin

# 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

Source : | Last Update : Sun, 04 Apr 21

Answers related to how to print output of a command to a file in linux

Code Explorer Popular Question For Basic