up arrow or ctrl + P shows you the last command you entered
down arrow or ctrl + N shows you the one command up in the command history.
ctrl + A takes the cursor to the beginning of the line
ctrl + E takes the cursor to the end of the line
left arrow or ctrl + B to move backward one character
right arrow or ctrl + F to move forward one character
ctrl + D or backspace deleted one character
ESC + B moves back one word in the current command
ESC + F moves forward one word in the current command
by default the sh history command shows the last 10 commands
from global config mode
history size 20 or 30 or 40 will increase the buffer
No comments:
Post a Comment