expansion Reuse and expand the shell history in sh, bash,…
Reuse and expand the shell history in
sh
,bash
,zsh
,rbash
andksh
. More information: https://www.gnu.org/software/bash/manual/html_node/History-Interaction.
!!
sudo !!
{{command}} !$
{{command}} !^
n
lines back in the history:!-{{n}}
string
:!{{string}}
string1
with string2
:^{{string1}}^{{string2}}^
{{!-n}}:p