← Useful Tips
Linux / WSLLinux

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

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. 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

Related tips