From: Yura Zotov <yznews@hotbox.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] History on root terminal
Date: Sun, 16 Mar 2003 01:16:35 +0300
Message-ID: <20030315221635.GA20606@home-pool4-69.com2com.ru> (raw)
In-Reply-To: <3E73A2E7.9070603@yauza.ru>
On Sun, Mar 16, 2003 at 01:02:15AM +0300, Pavel S. Khmelinsky wrote:
> В Мастере по умолчанию в файл ~/.bash_history записываются все команды
> пользователя. На мой взгляд не правильно то что это работает и по
> отношению к пользователю root.
>
> Пока я отключаю эту возможность строчкой
> export HISTSIZE=0
> в /root/.bashrc
>
> Но это не удобно т.к. нельзя вернутся даже к предыдущей команде.
>
> Отсюда вопрос, можно ли настроить баш так чтобы он сохранял в памяти
> введенные команды, чтобы к ним можно было вернутся во время текущей
> сессии, а по закрытию сессии счастливо эти команды забывал?
>
.bash_logout:
rm -f ~/.bash_history
Годится?
--
Юрий А. Зотов
next prev parent reply other threads:[~2003-03-15 22:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-15 22:02 Pavel S. Khmelinsky
2003-03-15 22:16 ` Yura Zotov [this message]
2003-03-15 22:42 ` Pavel S. Khmelinsky
2003-03-16 8:47 ` Pavel Usishev
2003-03-16 9:22 ` Pavel S. Khmelinsky
2003-03-16 11:35 ` Dmitry D. Khlebnikov
2003-03-16 13:18 ` Maxim.Savrilov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030315221635.GA20606@home-pool4-69.com2com.ru \
--to=yznews@hotbox.ru \
--cc=sisyphus@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git