Clear the Command History of your Terminal on Linux

Shahriar Shovon

Supported OS

  • All


Share this post with your friends

You may have a lots of command in your shells history. You can display your shell commands history by running the following command, history 1 history 2 lscpu 3 history This is the output of the history command of my Ubuntu computer. In real scenario you may have hundreds of commands on the history. To clear the command history of your terminal on Linux, run the following command, history -c That's how you remove the history of your shell on Linux.