prevent commands to appear on history

set/change HISTCONTROL environment variable

HISTCONTROL=ignoreboth

command beginning with white space won’t be saved on the history file

ls          will be saved on the history file
  ls -lah   won't be saved on the history file

Leave a comment