Linux Administration
medium

Pregunta de Linux Administration #019e3987

Enunciado de la Pregunta
Linux Administration
#histfile
#bash_history
#environment-variable
#history-file
Medio

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

A

HISTORY

B

HISTFILE

Correcto
C

BASH_HIST

D

LOGFILE

Explicación Oficial / Explicaciones de la Comunidad

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.