Previewing a command from the history list

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

To... Do this...

Preview previous command ^P in the list.

Preview next command in ^N the list.

Preview command number n. !n:p

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