ctrl + r - search history
then either press enter to execute the command or left right arrow to display the command
history - display command history
cat .bash_history
!3 line 3
!-2 go back 2 lines
!cat search commands start with 'cat'
!! refer to the last line
!$ refer to the last line (arguments only)
No comments:
Post a Comment