public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] bash_history
@ 2006-03-07  0:17 Goran Maksimović
  2006-03-07  0:39 ` Haim Ashkenazi
  0 siblings, 1 reply; 16+ messages in thread
From: Goran Maksimović @ 2006-03-07  0:17 UTC (permalink / raw
  To: gentoo-user

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

Hello!

 

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?

 

Goran


[-- Attachment #2: Type: text/html, Size: 2121 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: [gentoo-user]  Re: bash_history
@ 2006-03-07  8:42 Goran Maksimoviæ
  2006-03-07 19:39 ` Simon Kellett
  0 siblings, 1 reply; 16+ messages in thread
From: Goran Maksimoviæ @ 2006-03-07  8:42 UTC (permalink / raw
  To: gentoo-user


> 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
the> n
> > > 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
> 



Yes, but is there someway that when i press ctrl-alt-del that before Linux goes
in the process of reboot he previously log outs and then he goes in the process
of reboot?

Bye 

Goran

---------------------- T - C o m - - W e b m a i l ----------------------
Ova poruka poslana je upotrebom T-Com Webmail usluge.
Postani redatelj najgledanijeg hrvatskog filma!
http://www.tportal.hr/100sekundislave/



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: [gentoo-user]  Re: bash_history
@ 2006-03-08 12:14 Goran Maksimoviæ
  0 siblings, 0 replies; 16+ messages in thread
From: Goran Maksimoviæ @ 2006-03-08 12:14 UTC (permalink / raw
  To: gentoo-user


> Tim Kruse <irrlicht2c@gmx.net> writes:
> 
> >  I love zsh ;-)
> >
> > ,-----
> > | % setopt | grep -i "append.*history"
> > | incappendhistory
> > | % man zshoptions | col -b | grep -A 4 APPEND_HISTORY
> > |     APPEND_HISTORY <D>
> > |         If this is set, zsh sessions will append their history  list  to
> > |         the  history file, rather than overwrite it. Thus, multiple par-
> > |         allel zsh sessions will all have their history  lists  added  to
> > |         the history file, in the order they are killed.
> > |--
> > |     INC_APPEND_HISTORY
> > |         This options works like APPEND_HISTORY except that  new  history
> > |         lines  are added to the $HISTFILE incrementally (as soon as they
> > |         are entered), rather than waiting until  the  shell  is  killed.
> > |         The  file  is periodically trimmed to the number of lines speci-
> > |         fied by $SAVEHIST, but can exceed this value between  trimmings.
> > `-----
> 
> I'd love it more if they bothered to tell you how to set this stuff.
> 
> -- 
> gentoo-user@gentoo.org mailing list
> 

Yes it would be lovely :), but I prefer bash.


---------------------- T - C o m - - W e b m a i l ----------------------
Ova poruka poslana je upotrebom T-Com Webmail usluge.
T-Com te vodi na Svjetsko nogometno prvenstvo
http://www.t-com.hr/naslovnica/nogomet/



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-03-20  9:38 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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æ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox