Which of the following files, located in the user home directory, is used to store the Bash history?
A.
.bash_history
B.
.bash_histfile
C.
.history
D.
.bashrc_history
E.
.history_bash
题解
bash 的指令历史纪录存在于家目录下的「.bash_history」(~/.bash_history)文件。如果想要设置纪录的最大笔数,可以设置更改「HISTFILESIZE」这个变量的值。例如想要让 bash 的指令纪录保存的最大数量为 4000,可以在登录会自动运行的「~/.bashrc」文件中加上:
export HISTFILESIZE=4000
