How can I disable echo in terminal

This might seem simple but sometimes I need terminal to not echo anything , whether for a specific command or all commands.

in windows I could simply do echo off

I tend to make files with cat command a lot but it returns whatever I'm entering and I feel like an Alcoholic because I see double.

example :

cat | sudo tee -a vocab.txt

I am the first line
I am the first line
I am the second line
I am the second line


Solution 1:

You can turn terminal echo off with the command:

stty -echo

(warning: after entering this command, you won't see following commands that you'll type)

and turn it on again with the command:

stty echo