[ubuntu-it] History dei comandi

Vincenzo Tibullo enzotib a gmail.com
Gio 29 Gen 2009 09:23:28 GMT


Da man bash:

       On startup, the history is initialized from the file named by
the variable HISTFILE (default ~/.bash_history).  The file named  by
the  value  of
       HISTFILE  is  truncated,  if  necessary,  to contain no more
than the number of lines specified by the value of HISTFILESIZE.  When
an interactive
       shell exits, the last $HISTSIZE lines are copied from the
history list to $HISTFILE.

--
enzotib


2009/1/29 stefano664 <stefano664 a gmail.com>:
> Ciao a tutti, stavo facendo alcune prove sul mio Ubuntu ed ho scoperto una
> cosa curiosa. Sto lavorando su un terminale virtuale e lancio il comando
> history. Questo, regolarmente, stampa gli ultimi comandi che ho passato a
> bash. Se però faccio un cat di .bash_history non ottengo lo stesso
> risultato. Ottengo, piuttosto, dei comandi che avevo lanciato tempo fa.
> Perché? Forse .bash_history viene aggiornato solo al logoff dell'utente?
> Sarei curioso di avere un chiarimento, se qualcuno sa aiutarmi...
>
> --
> ubuntu-it mailing list
> ubuntu-it a lists.ubuntu.com
> Opzioni d'iscrizione - https://lists.ubuntu.com/mailman/listinfo/ubuntu-it
> http://wiki.ubuntu-it.org/Listiquette
>



Maggiori informazioni sulla lista ubuntu-it