Date: Mon, 6 May 2002 02:10:20 -0700 From: "Aaron Burke" <aburke@nullplusone.com> To: <lists@brenius.com> Cc: "FreeBSD-Questions" <freebsd-questions@freebsd.org> Subject: RE: bash & csh History Message-ID: <NGBBLCIHCLNJAIGIFFHJCECGCCAA.aburke@nullplusone.com> In-Reply-To: <000401c1f3f3$214a3b40$0200a8c0@afi>
next in thread | previous in thread | raw e-mail | index | archive | help
You can copy /usr/local/bin/bash to /bin/bash it will work fine after that. Then even root should have bash in single user mode. /root is not generally on the /usr partition, it is generally on /. So you should even have /root/.bash_history in single mode. > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of > lists@brenius.com > Sent: Saturday, May 04, 2002 10:10 PM > To: questions@FreeBSD.ORG > Cc: genisis@istar.ca > Subject: Re: bash & csh History > > > Hi Dru, > > > In the .history file of the user's home directory. If they su > to root, in > > the .history file found in /root. > > Gotcha, thanks. > > > Bash is a little bit more interesting as its history is kept in memory > > until the user logs out. Then it is stored in the user's .bash_history > file in > > their home directory. > > That is what I seemed to be seeing, it was just my history file > was getting > too big. > > > for csh: set history=# in user's .cshrc > > for bash: HISTSIZE=# in user's .profile > > That make sense, I just added it, so we will see how it goes. > > > Use "vipw" and change that user's shell to bash. > > Is that part of the OS or a port? I am not logged in right now so won`t be > able to > check until tomorrow. Anymore info on this program? > > >You could do the same for the root user's entry, but AFAIK this causes > > problems if you ever need to boot into single user mode??? Not sure as I > don't > > use bash myself :) > > Anyone else care to share some comments on this? > > Thanks for the help Dru, > > Dan > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NGBBLCIHCLNJAIGIFFHJCECGCCAA.aburke>