Every time I hit up, down, left, and right arrow keys to return to a previous sql command I got ^[[D, please any hints to fix this issue?
The backspace works fine with me. I tried to use stty to fix this issue with no luck.
Which SQL client and Linux version are we talking about?
Assuming you are using the Oracle sqlplus client... it does not support command line editing and history using the arrow keys. For this to work you will have to install a product called Readline Wrapper. See my answer at the General Database forum: sqlplus command line editing