Forrest logo
back to the history tool

history:tldr:413a4

history: Display the last 20 commands (in `zsh` it displays all commands starting from the 20th).
$ history ${20}
try on your machine

The command history ${20} is a command used in Unix-like operating systems, such as Linux, to display the last 20 executed commands from the command-line history.

Here's how the command works:

  1. history: The history command is used to display the command-line history, which shows previously executed commands.
  2. ${20}: This is a parameter used to specify the number of commands to display from the history. In this case, the number 20 indicates that the last 20 commands should be shown.

So, when you execute the command history ${20}, the system will retrieve and display the last 20 commands entered in the command line history.

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 history tool