Online Linux Terminal Logo
OnlineLinuxTerminal
System & ProzesseCLI Manual

$history

Display the list of previously executed terminal commands.

BefehlssyntaxPOSIX Standard
history [OPTIONS]
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

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

Wichtige Optionen und Flags

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.

Praktische Anwendungsbeispiele

#1View recent command history

Outputs the chronological list of commands executed in the session.