public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Haim Ashkenazi <haim@babysnakes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  Re: bash_history
Date: Tue, 07 Mar 2006 10:25:03 +0200	[thread overview]
Message-ID: <1141719903.11274.24.camel@parker.babysnakes.org> (raw)
In-Reply-To: <9p8vd3-37s.ln1@news.irrlicht.homelinux.net>

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

On Tue, 2006-03-07 at 03:46 +0100, Tim Kruse wrote:
> * On 07.03.2006 Haim Ashkenazi wrote:
> 
> >> I am wondering what do I need to config so that when a user or root
> >> type reboot the commands typed before a saved in bash_history and also
> >> when the user or root don' type anything but just press combination of
> >> keys ctrl+alt+del?
> > when you press reboot the shell process dies, so it doesn't save the
> > history. if you want to save history you have to exit the shell and then
> > login and enter reboot, or press ctrl+alt+del.
check out also the history command in bash ('help history'). it has some
commands to write or append the current history to a file (I never used
it, just looked at the man page).

if it works you can have alias to 'history -a $HISTFILE
&& /sbin/reboot'. of course you have to check the history options.

Bye
-- 
Haim

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

  reply	other threads:[~2006-03-07  8:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-07  0:17 [gentoo-user] bash_history Goran Maksimović
2006-03-07  0:39 ` Haim Ashkenazi
2006-03-07  2:46   ` [gentoo-user] bash_history Tim Kruse
2006-03-07  8:25     ` Haim Ashkenazi [this message]
2006-03-07 22:58     ` Harry Putnam
2006-03-18  9:17       ` Tim Kruse
2006-03-18 23:07         ` Neil Bothwick
2006-03-19  8:18           ` Tim Kruse
2006-03-19 16:06             ` Neil Bothwick
2006-03-19 17:37             ` Octavio Ruiz (Ta^3)
2006-03-20  9:31               ` Neil Bothwick
2006-03-18  9:24       ` Tim Kruse
2006-03-07 10:10   ` [gentoo-user] bash_history Matteo Lanza
  -- strict thread matches above, loose matches on Subject: below --
2006-03-07  8:42 [gentoo-user] bash_history Goran Maksimoviæ
2006-03-07 19:39 ` Simon Kellett
2006-03-08 12:14 Goran Maksimoviæ

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=1141719903.11274.24.camel@parker.babysnakes.org \
    --to=haim@babysnakes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox