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