Sistema y procesosCLI Manual
$history
Display the list of previously executed terminal commands.
Sintaxis del comandoPOSIX Standard
history [OPTIONS]Prueba en vivo en la terminal interactiva
Simulación del lado del cliente sin instalación y con respuesta inmediata.
bash — terminal
AST Sandbox (Free)
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 / Option | Description |
|---|---|
| -c | Clear 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
historyOutputs the chronological list of commands executed in the session.
Comandos de Linux relacionados
$psSistema y procesos
Muestra una instantánea de los procesos activos en ejecución.
$topSistema y procesos
Display real-time Linux processes and system resource utilization.
$htopSistema y procesos
Interactive process viewer with colorful CPU meters and mouse support.
$killSistema y procesos
Send termination or control signals to processes by PID.
$whoamiSistema y procesos
Print the effective username associated with the current shell session.
$dateSistema y procesos
Display or set system date and time.