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
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