Multiple choice technology operating systems

Which of the following is the command to delete continuous repeated entry from history ( Command should not erase all duplicates across the whole history)?

  1. HISTCONTROL=ignorespace

  2. HISTCONTROL=erasedups

  3. HISTCONTROL=erasealldups

  4. HISTCONTROL=ignoredups

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

HISTCONTROL=ignoredups prevents consecutive duplicate commands from being saved in history. It only removes duplicates that appear immediately after each other, not all duplicates across the entire history.