I'm using SSH host with Ubuntu 16.04. When I use it i can't use in command line arrow keys for moving cursor (^[[D ^[[C) and using previously used commands (^[[A ^[[B), but when I use nano i can do it. How can I fix it?
Asked
Active
Viewed 1,805 times
2
-
What are the outputs of `echo $SHELL` and `echo $0` when you log in via SSH – steeldriver Mar 13 '20 at 20:58
-
/bin/sh & -sh . – tuxlabore Mar 13 '20 at 21:35
-
1So it's probably just a matter of changing the remote user's login shell – steeldriver Mar 13 '20 at 21:41
1 Answers
0
Yeah sometimes when we are using text editors like nano and vim even we get exit of that the app runs in background and stops the cmd line functionality so you can't use arrow keys to search for previous history
so just gave reset cmd which reset the tab and gave you access back to history again
DEV
- 68
- 6