How to Clear Terminal History in Ubuntu Operating System
The history mechanism in Ubuntu keeps track of terminal commands you executed. To view your command line history, Open the Ubuntu terminal and Type :
This will display the list of previous bash commands you executed in the terminal.
To delete your Ubuntu terminal history, Type:
This will clear your Ubuntu terminal history. Also, you need to know that command line history is user independent, means every user has their own separate history. When you execute history -c command, it will only clear terminal history of the current user.