How to Save the Terminal Output to a File in Linux
- Using Redirection Operators. The most common and basic way to redirect output from the terminal into a file is to use the > and >> operators. ...
- Using tee command. With the redirection operators shown above, the output of the command is not displayed on the screen. ...
- Using script command. ...
- Using logsave command.