Online Linux Terminal Logo
OnlineLinuxTerminal
Sistema y procesosCLI Manual

$history

Display the list of previously executed terminal commands.

Sintaxis del comandoPOSIX Standard
history [OPTIONS]
Comunidad Linux2.4k En línea

Chatea con usuarios de Linux, aprende comandos y descarga guías PDF.

Prueba en vivo en la terminal interactiva

Simulación del lado del cliente sin instalación y con respuesta inmediata.

Abrir en terminal de pantalla completa ↗
bash — terminal

Descripción general y funcionamiento

`history` shows the shell history list with line numbers. It allows users to review previous commands, audit actions, or re-run previous commands using the `!n` event recall syntax.

Opciones y banderas comunes

Flag / OptionDescription
-cClear the history list in the current session.
-d [OFFSET]Delete the history entry at position OFFSET.
[N]List only the last N commands.

Ejemplos prácticos del mundo real

#1View recent command history

Outputs the chronological list of commands executed in the session.