In life, I cannot understand why ctrl - p and ctrl - n do not work, as if they should be under the Docker images that I worked with. ctrl - p should work just like the up arrow, but I usually have to press it twice to get the last command that I ran. And it cycles through history in what seems random.
Maybe someone can help me figure this out.
docker run -it buildpack-deps:trusty
If I press up here, it should show the touch command, and then ls . If I press ctrl - p , nothing appears for the first time. When I click it again, ls appears magically.
Can someone help me figure this out. I can not live without ctrl - p and ctrl - n .
source share