From owner-freebsd-questions Mon May 6 2:10:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cpimssmtpu05.email.msn.com (cpimssmtpu05.email.msn.com [207.46.181.81]) by hub.freebsd.org (Postfix) with ESMTP id 7F05E37B403 for ; Mon, 6 May 2002 02:10:47 -0700 (PDT) Received: from thebe ([67.24.56.33]) by cpimssmtpu05.email.msn.com with Microsoft SMTPSVC(5.0.2195.4617); Mon, 6 May 2002 02:10:10 -0700 From: "Aaron Burke" To: Cc: "FreeBSD-Questions" Subject: RE: bash & csh History Date: Mon, 6 May 2002 02:10:20 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <000401c1f3f3$214a3b40$0200a8c0@afi> Importance: Normal X-OriginalArrivalTime: 06 May 2002 09:10:11.0017 (UTC) FILETIME=[D320B390:01C1F4DD] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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