Server Administration & Management

How to hide your bash shell commands

Have you thought of hiding what you are doing on your linux bash shell prompt and not allowing your colleague to see what command you are entering or do you want to confuse your colleague by showing something invisible but work as visible? then read out this…

Today I came across a neat, but pointless shell command. By running the following in shell, it will hide any commands you run.

# stty -echo

In order to disable this mode, simply remove the “-” before echo.

# stty echo

I guess there really is no point to the command, though you could always mess with your coworkers if they leave their shell prompt open


December 5, 2011 Posted by | Tips & Tricks, Unix/Linux | , , | Leave a comment