You can modify it by setting the value in your ~/.bash_profile or your ~/.profile file: HISTCONTROL=ignoredupsĪ colon-separated list of values controlling how commands are saved on the history list. Verifiy that your HISTCONTROL environment variable is not set to ignorespace or ignoreboth. bashrc file: # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE after reading any startup files.Īs an example I have the following setup in my. The shell sets the default value to the value of Non-numeric values and numeric values less than zero inhibit The value is 0, the history file is truncated to zero size. Truncated to this size after writing it when a shell exits. This variable is assigned a value, the history file is trun‐Ĭated, if necessary, to contain no more than that number of The maximum number of lines contained in the history file. ![]() The shell sets the default value to 500 after reading any ![]() Numeric values less than zero result in everyĬommand being saved on the history list (there is no limit). If the value is 0, commands are not saved in The number of commands to remember in the command history (see To modify history size use two BASH variables HISTSIZE, HISTFILESIZE (usually set in.
0 Comments
Leave a Reply. |