How to manage Bash history - Linux Tutorials - Learn Linux Configuration

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.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-manage-bash-history

There is no ~/.bash_profile in a standard Ubuntu installation.