0

How to ignore Duplicate Commands In History

Hello,I just want to ignore the duplicate commands in the history .How to do that so?

CentOS Add a comment
AadrikaAnshu
asked Jun 20 2019

Answer

0

If the user execute a single command multiple times,you could ignre it by the following command
export HISTCONTROL=ignoredups

With this,it avoid the duplicate commands

Add a comment
linuxhelp
asked Jun 20 2019
Post your Answer