Forrest logo
back to the fc tool

fc:tldr:1c4ec

fc: List recent commands from history.
$ fc -l
try on your machine

The fc -l command is a built-in command in Unix-based systems that is used to view the command history, specifically the list of recently executed commands.

  • fc stands for "fix command" or "find command," and it is used to manipulate and view the command history list.
  • With the -l option following fc, it displays the command history list in a specific format.

When you execute fc -l in the terminal, it will show a numbered list of recently executed commands, with the most recent command at the top. The list usually includes the command number and the corresponding command itself. This allows you to refer back to previously executed commands and reuse them if desired.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fc tool