stty -echo

Christian Walther cptsalek at
Wed Mar 28 13:17:13 UTC 2007

On 28/03/07, Apeksha Godiyal <apeksha.godiyal at> wrote:
> Hi,
> I have been using the command stty -echo which is supposed to turn of
> displaying characters. But it is not turning off the echoing of typed chars.
> Example:
> $ stty -echo
> $ echo hi
> hi
> $
> Here "echo hi" should not have been printed.
> Is this a bug or have I not interpreted the man pages?

AFAIK it doesn't work in an interactive shell.
But it works in a script, just try something like:

stty -echo

> Thanks in advance,
> Apeksha Godiyal


More information about the freebsd-questions mailing list