Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/shell/bash_hist2.html
Дата изменения: Fri Jan 17 12:43:21 1997 Дата индексирования: Tue Oct 2 01:30:46 2012 Кодировка: |
Whenever you logout or exit from the Bourne Again SHell the contents of your command history are saved in the file .bash_history in your home directory.
When you next login the contents of this file are placed in the history list and you can re-use commands from your previous login session.
To specify how much of your command history is to be saved set the environment variable HISTFILESIZE. For example:
HISTFILESIZE=25;export HISTFILESIZE
This saves the previous twenty-five (25) commands you have used; not the complete command history list.