hstr command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hstr: command not found
or when using sudo you get the following error message
sudo: hstr: command not found
Solutions to hstr: command not found
How To Fix hstr: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hstr is provided by hstr package.
hstr is:
Command line tool that brings improved bash/zsh command completion from the history. It aims to make completion easier and more efficient than Ctrl-r.
HSTR can also manage your command history (for instance you can remove commands that are obsolete or contain a piece of sensitive information) or bookmark your favorite commands.
To fix this problem, we can install more using the command below.
sudo apt-get -y install hstr
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install hstr.
sudo apt -y install hstr
Or if you have aptitude installed you can use the following command.
sudo aptitude install hstr
Summary
In this tutorial we learn how to fix hstr command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.