How to Manage Your Terminal Command History Using HSTR

HSTR is a free and open source terminal command history management and command bookmarking application for Linux and MacOS. Using HSTR, you can view, navigate, sort and use your terminal app command history. Currently it supports bash and zsh shell history suggest box. It parses .bash-history file that is filtered as you type a command substring.

HSTR

How to Install HSTR on Ubuntu

To install HSTR on your system, run below command in the terminal application(ctrl+alt+t).

sudo apt install hstr

For Ubuntu 21.04 and older, use below commands to Install HSTR.

sudo add-apt-repository ppa:ultradvorka/ppa
sudo apt-get update
sudo apt-get install hstr

After the installation configure HSTR using below command.

hstr --show-configuration >> ~/.bashrc
source ~/.bashrc

After that run HSTR using below command.

hstr

You can type to filter, move using UP/DOWN, select using RET/TAB, remove using DEL key, Ctrl-f add favorite, Ctrl-g history.

Also Read:  How to install Nginx Web Server on Ubuntu

For the complete HSTR usage details run below command and fo configuration details click here.

man hstr
If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Leave a Reply