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. – muru Dec 11 '14 at 12:11tee
. Even in such a case, the command will be doing the same thingtee
is doing. – Registered User Dec 11 '14 at 12:14tee
, which was designed exactly for this purpose? – mivk Dec 11 '14 at 12:23