>_ linuxcommand.dev
Startseite history
Command Line Interface (CLI)

history

Show command history

Ubuntu CentOS Debian SUSE Fedora RHEL Arch Alpine macOS
Verified: 2026-03-04
Syntax
$history [n]
Examples
$history
$history 20
$history | grep ssh
$npm install tailwindcss@latest postcss autoprefixer
Typical use cases
?
Standard usage
history --help
Note Displays previous commands.
Export