Category: Linux Terminal

Added: 23rd of December 2015

Updated On: 6th of October 2020

Viewed: 1359 times

How can I view all of the bash history?

This article was rechecked and updated on 06/10/20

It's handy to be able to go back and view what commands you entered in to the Terminal. To do this open the terminal and enter the following command

history


If you want a hard copy, you can also output this to a .txt file by enter the following command
history > bash_history.txt


The log file is located under your home directory. This is a hidden file named .bash_history so to view it you will need to show hidden files in your file file manager, or press click CTRL+H

.bash_history file, located under your home directory

Note: If you use bleachbit to clean out your system every once in a while you might want to uncheck Bash History option.

Other Tips & Tutorials

Linux Terminal

Kill multiple processes using the pkill command in Linux

Posted: 5th of January 2021

Views: 259

Linux Terminal

Display free memory using the terminal in Linux

Posted: 17th of December 2020

Views: 321

Linux Terminal

Using mlocate to find files by name, extension using the terminal in Linux

Posted: 27th of November 2020

Views: 286

Linux Terminal

Capture screenshots of websites using cutycapt in different formats using the terminal in Ubuntu and Ubuntu based distributions

Posted: 15th of November 2020

Views: 406

Linux Terminal

Display a calendar in the terminal

Posted: 6th of November 2020

Views: 344

Linux Terminal

Create a simple cronjob in Linux

Posted: 20th of October 2020

Views: 442

Linux Terminal

Create a new folder and file using the mkdir and touch commands using the terminal in Linux

Posted: 16th of August 2020

Views: 459

Linux Terminal

Convert a PDF document to text or html using pdftotext, pdftohtml in Linux using the terminal

Posted: 3rd of August 2020

Views: 712

Linux Terminal

List files in a directory using the ls command

Posted: 22nd of July 2020

Views: 477

Linux Terminal

How to access HP Linux Imaging and Printing System set up on Ubuntu using the terminal

Posted: 13th of November 2019

Views: 1179