Linux Administration
medium

Questão de Linux Administration #019e3987

Enunciado da Questão
Linux Administration
#histfile
#bash_history
#environment-variable
#history-file
Médio

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process?

A

HISTORY

B

HISTFILE

Correta
C

BASH_HIST

D

LOGFILE

Explicação Oficial / Explicações da Comunidade

The HISTFILE environment variable specifies the file where the command history is saved when a Bash session ends. By default, this is ~/.bash_history. When Bash exits, it writes the history list to the file named by HISTFILE. If HISTFILE is unset, no history is saved.