Tracking command history across multiple computers

Magic Shell

© Photo by Giulia May on Unsplash

© Photo by Giulia May on Unsplash

Article from Issue 265/2022

Atuin adds some handy queries to the shell history function, while letting you synchronize your command history across the network.

"What was that long command I entered on my notebook last year that showed me all the installed packages?" If questions like these sound all too familiar, read on.

Unix shells such as Bash, Fish, or Zsh already have basic functions for reviewing the last commands typed at the command line. The up arrow key can be used to browse the command history, with each keystroke scrolling back one entry.

For commands that were executed a while ago, the Bash history function offers a little more information and convenience. The history function first appeared in Unix in 1978 in the C shell and spread from there to many command-line interpreters up to and including Microsoft's command.exe. A detailed manual [1] for the history function can be found on the DigitalOcean website (Figure 1).


Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Effectively using Bash history

    You can do more with the Bash history command than just using the arrow keys. We show you how to use this command-line tool more efficiently.

  • Back to the Future

    McFly improves on the venerable history command with a customizable interface and contextualized results.

  • McFly

    When it comes to working at the command line, using Bash history effectively can save you time. McFly extends the Bash history's features and helps you find past commands more quickly.

  • Bash History on Steroids

    You can always browse the Bash history using your arrow keys, but Bash's search capabilities are very limited. Enter the clever Bash History Suggest Box.

  • Don't Know Much About History

    The versatile Bash history command can save you time and effort at the command line.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.