View previous topic :: View next topic |
Author |
Message |
Galanti Davide Tux's lil' helper


Joined: 23 Feb 2006 Posts: 148 Location: Milano (Italy)
|
Posted: Wed Mar 15, 2006 4:22 pm Post subject: [Risolto] Ripulire bash_history |
|
|
Volevo sapere se era possibile fare in modo che al logout di un utente, la sua bash_history si pulisca in maniera automatica
Last edited by Galanti Davide on Wed Mar 15, 2006 4:51 pm; edited 1 time in total |
|
Back to top |
|
 |
Luca89 Advocate


Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Wed Mar 15, 2006 4:32 pm Post subject: |
|
|
Basta inserire nel file "~/.bash_logout": Code: | rm -f ~/.bash_history |
_________________ Running Fast! |
|
Back to top |
|
 |
Ilvalle Guru


Joined: 07 Mar 2005 Posts: 325 Location: Gallarate - ITALY
|
Posted: Wed Mar 15, 2006 4:34 pm Post subject: |
|
|
puoi eliminare il file scrivendo qualcosa nel ~/.bash_logout
tipo
Code: | [[ -f ~/.bash_history ]] && rm -f ~/.bash_history |
Ciao |
|
Back to top |
|
 |
Galanti Davide Tux's lil' helper


Joined: 23 Feb 2006 Posts: 148 Location: Milano (Italy)
|
Posted: Wed Mar 15, 2006 4:50 pm Post subject: |
|
|
Vi ringrazio a entrambi :)
Avevo in mente che si facesse così, ma volevo avere conferma essendo alle prime armi e non volendo creare "casini" |
|
Back to top |
|
 |
Cazzantonio Bodhisattva


Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Wed Mar 15, 2006 5:33 pm Post subject: |
|
|
è che per tante cose non c'è un "si fa così".... si può pensare a tante soluzioni alcune semplici e altre meno _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
 |
fabius Guru


Joined: 29 Nov 2004 Posts: 525
|
Posted: Fri Mar 17, 2006 9:05 pm Post subject: |
|
|
Se proprio non vuoi il file di history basta impostare la variabile ambiente
In questo modo esiste solo la history della shell aperta (in memoria) |
|
Back to top |
|
 |
Galanti Davide Tux's lil' helper


Joined: 23 Feb 2006 Posts: 148 Location: Milano (Italy)
|
Posted: Fri Mar 17, 2006 9:37 pm Post subject: |
|
|
fabius wrote: | Se proprio non vuoi il file di history basta impostare la variabile ambiente
In questo modo esiste solo la history della shell aperta (in memoria) |
Ecco così è ancora meglio :) |
|
Back to top |
|
 |
|