$linuxjunkies
>

atuin(1)

Atuin is a magical shell history search tool that syncs, backs up, and intelligently searches your command history across machines.

UbuntuDebianFedoraArch

Synopsis

atuin [COMMAND] [OPTIONS]

Description

Atuin replaces your shell's default history with a SQLite database, providing powerful search, statistics, and sync capabilities. It works with bash, zsh, fish, and other shells, capturing command context like exit status, duration, and working directory.

Key features include fuzzy search with preview, history sync across devices with encrypted backups, and detailed command statistics. Your history is private by default—sync is opt-in and end-to-end encrypted.

Common options

FlagWhat it does
searchInteractive search through your command history with preview
historyManage local history database (list, delete, import, export)
statsDisplay statistics about your command usage patterns
syncSync history with remote server (requires login)
loginAuthenticate with Atuin server for history sync
logoutLog out from Atuin server and stop syncing
importImport history from another shell (bash, zsh, fish)
--limit NLimit search results to N entries (default 100)
--filter-modeSet filter mode (session, directory, or global)
--reverseReverse search result order (newest first by default)

Examples

Open interactive fuzzy search with preview of matching commands

atuin search

Show last 20 commands from local history database

atuin history list --limit 20

Display command frequency, top commands, and usage patterns

atuin stats

Authenticate with Atuin server to enable cloud sync

atuin login

Manually sync history with remote server (usually auto-syncs)

atuin sync

Auto-detect shell and import existing history into Atuin

atuin import auto

Delete all history entries from current directory

atuin history delete --cwd

Export full history as JSON and compress for safe backup

atuin history export | gzip > backup.gz

Related commands