C'è qualche comando che potrei usare per creare .bash_history
non si cancella mai da solo?
Dopo un certo numero di comandi si cancella da solo.
Penso che funzioni ma non ne sono sicuro?
HISTFILESIZE=100000000000
L'ho eseguito ma non sono sicuro che soddisfi ciò che ho chiesto.
E so che se il file diventa troppo grande, bash potrebbe essere più lento, ma ogni tanto lo sposterò fuori.
Risposta accettata:
Aggiungi questa riga al tuo .profile
(o .bash_profile
):
export HISTSIZE=
export HISTFILESIZE=
Dalla documentazione delle strutture di Bash History:
Se HISTFILESIZE non è impostato, non viene eseguito alcun troncamento.