tldr/pages/common/fc.md

26 lines
430 B
Markdown
Raw Permalink Normal View History

2018-11-25 15:27:30 +00:00
# fc
> Open the most recent command and edit it.
> Some subcommands such as `fc list` have their own usage documentation.
> More information: <https://manned.org/fc>.
2018-11-25 15:27:30 +00:00
- Open in the default system editor:
`fc`
- Specify an editor to open with:
`fc -e {{'emacs'}}`
- List recent commands from history:
`fc -l`
2021-11-01 05:28:43 +00:00
- List recent commands in reverse order:
`fc -r`
- List commands in a given interval:
`fc '{{416}}' '{{420}}'`