System & ProzesseCLI Manual
$history
Display the list of previously executed terminal commands.
BefehlssyntaxPOSIX Standard
history [OPTIONS]Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Ü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 / 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. |
Praktische Anwendungsbeispiele
#1View recent command history
historyOutputs the chronological list of commands executed in the session.
Verwandte Linux-Befehle
$psSystem & Prozesse
Momentaufnahme der aktuell ausgeführten Systemprozesse anzeigen.
$topSystem & Prozesse
Display real-time Linux processes and system resource utilization.
$htopSystem & Prozesse
Interactive process viewer with colorful CPU meters and mouse support.
$killSystem & Prozesse
Send termination or control signals to processes by PID.
$whoamiSystem & Prozesse
Print the effective username associated with the current shell session.
$dateSystem & Prozesse
Display or set system date and time.