How to Show History of Commands used on Ubuntu Terminal

By Rashid •  November 29th, 2020 • 

We use Terminal for various purposes. As a result we type in a lot of commands. It’s very common that we forget some of the commands we have used. In this article, let’s see how to show history of commands used in your terminal.

The history command can be used for this purpose. Open the terminal and execute the history command.


This will give the history of commands stored as given below.

You can also clear this history using the following command.

history -c

I hope this Ubuntu terminal tutorial will be helpful for you.


I am a fan of Ubuntu and I love all popular free and open source softwares. I wish everyone should try and support open source projects.

Keep Reading