On my system I use Escape "k" to go back in commands. I read on tutorials that it is ctrl p, but that does not work on my system.
Anyone know what the command to go foward is?
On my system I use Escape "k" to go back in commands. I read on tutorials that it is ctrl p, but that does not work on my system.
Anyone know what the command to go foward is?
It depends on yr EDITOR setting u have.
for EDITOR as vi ... ESC + k navaigates to previous commands.
CTRL + P .. i think that is for emacs editor.
do either set -o vi
or
set -o emacs
after exporting the EDITOR=vi or EDITOR=emacs.
CTRL + N in emacs mode
ESC and k in vi mode
Assuming you have vi as your editor.
ESC + k moves backward
ESC + j moves forward
google, esc+j is the one, thx.
However I do not have to be in vi to use the command, it works right from the command line.
That's correct - run "set -o" from the command line - you should see that vi is set on.
Cheers
ZB
zazzy, thank you. I do see vi set to "on".