While you’re in the Terminal issuing commands, there is a file being updated in the background that you may not have been aware of. This file is called the Bash History file. This assumes, of course, that you’re running the Bash shell. It’s located in a hidden file underneath the $HOME directory of the current logged in user; that is to say, it’s located at ~/.bash_history. This file is generally referred to simply as the History file. When you issue commands in the Terminal in Linux, these commands are recorded in this file.