Celeb Glow
general | March 18, 2026

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
3

1 Answer

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
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy