LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

atuin

Magical shell history with sync and search

TLDR

Search command history interactively
$ atuin search -i [query]
copy
Import existing history from the current shell
$ atuin import auto
copy
Sync history to server
$ atuin sync
copy
Show statistics about shell usage
$ atuin stats
copy
Login to sync server
$ atuin login
copy
Register a new sync account
$ atuin register -u [username] -e [email] -p [password]
copy
List recent command history
$ atuin history list
copy
Run diagnostics to check for common issues
$ atuin doctor
copy

SYNOPSIS

atuin command [options]

DESCRIPTION

atuin replaces your shell history with a SQLite database, providing powerful search, context tracking, and optional end-to-end encrypted sync across machines.It records additional context like exit status, duration, working directory, and hostname, making history search more powerful than traditional Ctrl+R.

PARAMETERS

search [query]

Interactive history search. Supports filtering by directory, session, host, or globally.
import source
Import existing history (auto, bash, zsh, fish, nu, xonsh, resh, and others).
sync
Synchronize history with the Atuin server (upload and download).
login
Authenticate with sync server.
register
Register a new account on the Atuin sync server.
logout
Remove authentication.
key
Display or set the encryption key used for end-to-end encrypted sync.
stats
Show usage statistics and command frequency.
history subcommand
History management (list, delete, etc.).
init shell
Output shell setup code for bash, zsh, fish, or nu.
doctor
Run diagnostics to check for common issues with the installation.
info
Display system and configuration information.
dotfiles
Manage and sync shell aliases and environment variables.

CONFIGURATION

~/.config/atuin/config.toml

Main configuration file for search settings, sync options, database path, filter mode, search mode, and UI preferences.

SHELL INTEGRATION

Add to shell rc file:

$ eval "$(atuin init bash)"  # or zsh, fish
copy
Optionally disable specific keybindings:
$ eval "$(atuin init zsh --disable-up-arrow)"
copy

CAVEATS

Requires shell initialization code. Sync feature is optional (can be used fully offline). Database can grow large over time. Some shells require specific configuration for proper integration.

HISTORY

atuin was created by Ellie Huxtable and released in 2021, offering modern shell history with end-to-end encrypted sync, statistics, and improved search.

SEE ALSO

history(1), mcfly(1), hstr(1), fzf(1), bash(1), zsh(1)

Copied to clipboard
Kai