fc

Open the most recent command and edit it. More information: https://manned.org/fc.

fc

fc -e 'emacs'

fc -l

fc -l -r

fc '416' '420'