これは
何回も同じコマンドを打った後に上矢印キーでコマンドを遡りたいときに連続して同じコマンドがhistoryに保存されていると遡るのが面倒なので解消。
作業
".bashrc"に追記
export HISTCONTROL=ignoreboth
追記前
$ ls -a
. .. file1 file2
$ ls
file1 file2
$ ls
file1 file2
$ history
...
342 ls -a
343 ls
344 ls
345 history
追記後
$ ls -a
. .. file1 file2
$ ls
file1 file2
$ ls
file1 file2
$ history
...
354 ls -a
355 ls
356 history