---

How to Save Command Output to a File in Linux

Tecmint: There are many things you can do with the output of a command in Linux. You can assign the output of a command to a variable, send it to another command/program for processing through a pipe or redirect it to a file for further analysis. In this short article, I will show you a simple but useful command-line trick: how to view output of a command on the screen and also write to a file in Linux.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis