0

I would like to save output from command to a file and observe it on ubuntu terminal at once.

Using basic:

command >output.txt

It's not working, because the terminal shows nothing.

Is it possible to see the output in both file and in terminal window?

Am_I_Helpful
  • 18,735
  • 7
  • 49
  • 73

1 Answers1

4

Use tee command to achieve the same.

command | tee output.txt
Am_I_Helpful
  • 18,735
  • 7
  • 49
  • 73