The bash shell records a limited history of recently issued commands (up to 1000 default). You can scroll through the command history.
To se the fill history,
$ history
Will give you the recent command in chronological order.
The history is also searchable. Hitting Ctrl+R will change the prompt to reverse-i-search; now, the Shell will find within the history the most recent command that contains that entered string. Enter to execute, esc to return to normal mode.
!! executes the last command in the history file.
!partial - command will execute the last command beginning with partial -command. !ech would re-run the last echo command.
No comments:
Post a Comment