In some linux systems, when I write the beginning characters of a command and press page-up, I can browse through the latest similar commands saved in the history file. However, I found that this browsing by page-up key doesn't work on one ubuntu machine, so I want to add this capability to the system for convenience.
I did a little search, and found that ading these two lines to my .bashrc file will fix the problem:
bindkey -k up history-search-backward bindkey -k down history-search-forward
but it didn't work, and in fact, it says
bindkey: command not found bindkey: command not found
Any idea how to solve this issue on ubuntu?