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

33 lines
518 B
Markdown
Raw Normal View History

2018-11-25 08:27:30 -07:00
# fc
> Open the most recent command for editing and then run it.
> More information: <https://manned.org/fc>.
2018-11-25 08:27:30 -07:00
- Open the last command in the default system editor and run it after editing:
2018-11-25 08:27:30 -07:00
`fc`
- Specify an editor to open with:
`fc -e {{'emacs'}}`
- List recent commands from history:
`fc -l`
2021-11-01 02:28:43 -03:00
- List recent commands in reverse order:
2023-01-25 11:29:14 +08:00
`fc -l -r`
2021-11-01 02:28:43 -03:00
- Edit and run a command from history:
`fc {{number}}`
- Edit commands in a given interval and run them:
2021-11-01 02:28:43 -03:00
`fc '{{416}}' '{{420}}'`
- Display help:
`fc --help`