The fc command lists, edits, or re-executes commands previously entered to a shell

fc is used to list or edit and re-execute commands from the history list. FIRST and LAST can be numbers specifying the range, or FIRST can be a string, which means the most recent command beginning with that string. $fc -l 2048 git commit -am “work” 2049 git push -u origin master 2050 ls 2051 …