macOS / binaries /

fc

/usr/bin/fc
Process the command history list

The fc utility shall list, or shall edit and re-execute, commands previously entered to an interactive sh.

source: man7.org