Linux CLI - Environment and Configuration
You want to save only the last 50 commands to your history file and discard older ones automatically. Which approach achieves this?
HISTSIZE controls how many commands are kept in memory; HISTFILESIZE controls how many are saved to file.history -w writes current history to file but doesn't limit size; history -c clears all history; manual deletion is inefficient.HISTSIZE=50 and HISTFILESIZE=50 in your shell config -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions