View previous topic :: View next topic |
Author |
Message |
Galanti Davide Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/150285208943fdbaf479355.png)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Luca89 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/15529267248502dd4c2bab.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Ilvalle Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1227876817432eddd1a22f9.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Galanti Davide Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/150285208943fdbaf479355.png)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
fabius Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/153132303341ff8ed676c0e.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Galanti Davide Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/150285208943fdbaf479355.png)
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 |
|
![](templates/gentoo/images/spacer.gif) |
|