I am running a command say nmap www.somesite.com>file.txt
so that i can get the output to file.txt. But if I do so, I am not able to see the output of that command on terminal. Is it possible to make it visble on terminal also.
I know the usage of tee
, but I wish to do this specifically in this way.
echo A>some.file.txt
. OP WantsA
to appear on the screen and in the file as well.tee
, which was designed exactly for this purpose?