Linux terminal – frozen update of input but can execute commands

bashconsolelinuxssh

How do I restart a shell session from within SSH when it looks something like this:

anton@ubuntu:~$ c: command not found
                                    anton@ubuntu:~$ lib
                                                       anton@ubuntu:~$ this is working, but its messed up
                         anton@ubuntu:~$

I can execute commands, but as I input them nothing shows on the console. But as soon as I press Enter the command executes and the output comes (without line-endings, as shown above).

exec bash
bash --login
clear

Nothing really works, restarting the SSH session however works.
The temporary solution is to start a screen session and every time the interface freezes you simply do Ctrl+a->c to start a new session and close the old one.

Best Answer

The command reset might help. See man reset for details, but simple reset should be just fine.

Related Question