1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/fc.md
Managor 97f0e9b445
fc: refresh page (#14019)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2024-10-07 16:00:13 +02:00

32 lines
518 B
Markdown

# fc
> Open the most recent command for editing and then run it.
> More information: <https://manned.org/fc>.
- Open the last command in the default system editor and run it after editing:
`fc`
- Specify an editor to open with:
`fc -e {{'emacs'}}`
- List recent commands from history:
`fc -l`
- List recent commands in reverse order:
`fc -l -r`
- Edit and run a command from history:
`fc {{number}}`
- Edit commands in a given interval and run them:
`fc '{{416}}' '{{420}}'`
- Display help:
`fc --help`