Previewing a command from the history list

You can preview a command from the history list without having to re-run it.

To... Do this...

Preview the previous command. !!:p

Preview command number n. !n:p

Preview most recent command !string:p starting with characters in string.

Preview most recent command !?string:p containing characters that match string.


Top document