Online Linux Terminal Logo
OnlineLinuxTerminal
Système et processusCLI Manual

$history

Display the list of previously executed terminal commands.

Syntaxe de la commandePOSIX Standard
history [OPTIONS]
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

`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.

Options et drapeaux courants

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.

Exemples pratiques du monde réel

#1View recent command history

Outputs the chronological list of commands executed in the session.