Fc (Unix)


is a standard program on Unix and Unix-like operating systems that lists, edits and reexecutes commands previously entered to an interactive shell. fc is a builtin command in the bash shell.

Examples


$ fc -l
1001 ls
$ fc -s 1001
ls
...