How to manage Linux Bash history

BASH (Bourne Again SHell) is the default shell in practically all Linux-based operating systems. All the commands we write in the terminal are interpreted by the shell, and become part of its history. In this tutorial, we see where the shell history is saved, and how to manage it using the “history” built-in command and some environment variables.

The tutorial covers where and how the history is saved, how to modify history behaviour via environmental variables, etc. So it is not the normal “how to use history” guides, but it is worth just mentioning, if you want to repeat a command by its number, you can quickly use !13 for the line numbered 13.

See https://linuxconfig.org/how-to-manage-bash-history

#technology #linux #opensource #bash #cli