» Linux »
Examen sur Linux »
Examen 201 : Advanced Administration »
Section 5 »
Question 12/23
Explanation: The bash_history file is a file in a user's home directory that contains a list of the (recent)
commands issued by this user at the bash command line. This file can grow to up to the number of lines
specified in the HISTFILESIZE variable; therefore, to reduce the maximum size of the file, you should set
the HISTFILESIZE variable to a smaller number.
Reference: http://www.slug-vt.org/bash.html
Incorrect Answers
B: The HISTSIZE variable contains the number of commands in the history. When a user logs off, the commands are written to the bash_history file.
C: There is no NOHISTFILE variable.
D: If the HISTAPPEND variable is set to true, the history will be appended to the history file bash_history),otherwise the file will be overwritten. Therefore, setting the HISTAPPEND variable to false, not true would
work.