fc:tldr:29bd6
fc: List recent commands in reverse order.
$ fc -l -r
try on your machine
The command fc
is used in the command line interface to display or manipulate entries in the command history.
With the flags -l
and -r
, the command fc -l -r
performs the following actions:
-l
: Lists the recently executed commands from the command history. It displays the command number along with the command itself.-r
: Reverses the order of the displayed commands. By default, commands are listed in ascending order of their execution.
So, fc -l -r
will display the recently executed commands in reverse order, showing the most recent command at the top and the oldest one at the bottom.
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.