← Useful Tips
fc: Edit a previous shell command before rerunning it
Use fc to edit a previous shell command before rerunning it. It is especially handy when you live in terminals and repeat long commands.
fc
Why it helps
Use fc to edit a previous shell command before rerunning it. It is especially handy when you live in terminals and repeat long commands.
How to use it
- Open the relevant app or terminal.
- Use the shortcut or command above in the relevant context.
- Check the result; for commands that change data, test on a small example first.
People also search for
fc: Edit a previous shell command before rerunning itfcedit a previous shell command before rerunning ithow to edit a previous shell command before rerunning itLinux / WSL edit a previous shell command before rerunning it