Normally in terminal when you run a command, it prints and shows the command output directly in the terminal. If you want to store that output in a external text file, then you can also do it in bash based terminals. Ex:Ubuntu. It redirect the output and saves in a text file. It will help to view the output at later. In this article we will see the all available methods to print the terminal output to a file.