I know many people wants to save the output of some commands, in order to review them later, or only as backup.

But what happens if you need to save the output of the sh tech- in a file?. Will you continue pressing space bar when the ouput does not fit the window?

Answer is very simple. First, to avoid spacebar hits, we can enter terminal length 0 and the entire output will fill your window and will start to scroll if it’s a little large. Second, command redirections, so we can write the output to a file stored on flash. In this example I will use a command with a large output, as per example, sh tech-s. Ok, to redirect this output without seeing it we do: sh tech-s | redirect flash:out.put. If instead of that we want output on screen and on file, sh tech-s | tee out.put

And that’s all,