8

Tip #218   Edit previous commands with fc

Use the 'fc' command to open your previous command for editing in your default editor. Saving the changes will then run the edited command.

'fc -l' will show a list of previous commands to edit and 'fc ' will open a command from the list for editing.
 
  • TAGS:
  • fc