"There is no up and down on the command line so j and k don't do anything." well they do cycle throw the history for me [bash version 5.0.17]
Thank you. j and k do indeed move through the command history. I have updated the article to include the new information.
j
k
I use this a lot in my .bashrc
function hg() { history | grep $1; }
and this to run the second to last command
$ !-2
Now I can use the j and k keys.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
"There is no up and down on the command line so j and k don't do anything."
well they do cycle throw the history for me [bash version 5.0.17]
Thank you.
j
andk
do indeed move through the command history. I have updated the article to include the new information.I use this a lot in my .bashrc
and this to run the second to last command
Now I can use the
j
andk
keys.