history expansion

Reuse and expand the shell history in `sh`, `bash`, `zsh`, `rbash` and `ksh`.
More information.
sudo !!
{command} !$
{command} !^
!{n}
!-{n}
!?{string}?
^{string1}^{string2}^
{!-n}:p
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY