Search for commands in history while typing a portion of the string
Hit control + r while in a shell and then start typing a command like tar and it will bring up the last command you did with tar.
Display history command but don't execute it
Just type a history command like !352 and append :p to it as in,
$ !352:p
and that will output just the command without executing it.
[Click to add or edit comments])
Please prepend comments below including a date