When I connect to my VPS through terminal and I want see the previous commands I get:
$ ^[[A^[[A
(by pressing up arrow)
What is wrong with it ? How can I see unix previous commands instead ?
thanks
When I connect to my VPS through terminal and I want see the previous commands I get:
$ ^[[A^[[A
(by pressing up arrow)
What is wrong with it ? How can I see unix previous commands instead ?
thanks
You are most likely using
sh
rather thanbash
or some other shell that allows command line editing. Try running bash and see what happens. If this fixes things for you then you will need to change the default shell for the account e.g.There is another pitfall if you have multiple shells open on the same user account: the history finally saved in the .history file will be that of the last shell closed.
Alternatively, you can still use sh vi mode to get the command history: