We’ve all done it - issuing a nonsense command such as cat /bin/ln can really screw up your terminal! In order to sanitise your terminal, you can try three things. First of all, try the reset command. If that doesn’t work (or isn’t supported), try stty sane. That should be supported, but doesn’t always work. I find the command that gets me out of trouble is
|
1 |
echo ^O |
The ^O is produced by typing CTRL-V CTRL-O. This should return your terminal to a sensible state.