Bash Terminal Session Echo Turned Off After Breaking Shell Script Fix
If you exit out of a Linux / UNIX shell script and now you no longer see what you are typing in your terminal, your TTY session echo did not get turned back on. (TeleTYpewriter, from way back when UNIX systems hosted a bunch of terminals,)
FIX: To see what you are typing in your TTY/Terminal/SSH/telnet session,
just type: stty echo <enter>
Here is why this happens. Sometimes when you write a shell script, you do not want the user getting confused with all the commands that you are running, so you turn it off in your script like below.
#!/bin/bash
echo Hello
stty -echo
# do what ever you want to do
echo 'I slept with your mom'
stty echo
echo Bye
exit 0;
This script will only print echo "Bye" to the terminal and not the other unmentionable thing.