Système et processusCLI Manual
$history
Display the list of previously executed terminal commands.
Syntaxe de la commandePOSIX Standard
history [OPTIONS]Essayer en direct dans le bac à sable interactif
Simulation côté client sans installation avec retour instantané.
bash — terminal
AST Sandbox (Free)
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 / 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. |
Exemples pratiques du monde réel
#1View recent command history
historyOutputs the chronological list of commands executed in the session.
Commandes Linux associées
$psSystème et processus
Afficher un instantané des processus en cours d'exécution dans le système.
$topSystème et processus
Display real-time Linux processes and system resource utilization.
$htopSystème et processus
Interactive process viewer with colorful CPU meters and mouse support.
$killSystème et processus
Send termination or control signals to processes by PID.
$whoamiSystème et processus
Print the effective username associated with the current shell session.
$dateSystème et processus
Display or set system date and time.