The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации

Saving command history between logins

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.


[Home] [Search] [Index]



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру