From owner-freebsd-questions Wed Jun 23 5:48: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from voyager.fisicc-ufm.edu (ip-61-093.guate.net [200.12.61.93]) by hub.freebsd.org (Postfix) with ESMTP id CA1A014DA6 for ; Wed, 23 Jun 1999 05:47:53 -0700 (PDT) (envelope-from obonilla@voyager.fisicc-ufm.edu) Received: (from obonilla@localhost) by voyager.fisicc-ufm.edu (8.9.3/8.9.3) id GAA01337; Wed, 23 Jun 1999 06:46:31 -0600 (CST) (envelope-from obonilla) Date: Wed, 23 Jun 1999 06:46:28 -0600 From: Oscar Bonilla To: Doug White Cc: Chris Singer , BSD Help Subject: Re: Changing eh name displayed at the Root prompt. Message-ID: <19990623064628.A351@fisicc-ufm.edu> References: <000c01bebc3d$1e2d8840$0ea78e8b@maverick.workfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Doug White on Tue, Jun 22, 1999 at 12:00:19PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jun 22, 1999 at 12:00:19PM -0700, Doug White wrote: > On Mon, 21 Jun 1999, Chris Singer wrote: > > > Could someone tell me where I need to got or rather what file I need to > > modify to change the name of the root directory. I recompiled a file that > > had the same name and IP as another computer. I have changed the ip but > > whenever I login as root or use the super user function I get confused as to > > which machine I'm working on. They are both access via telnet. If anyone > > could help me out with this you it would be great. Thanks all for > > listening to my pleas for help. > > /etc/rc.conf > I think he meant changing the prompt. I mean from # to SysName# It depends on the shell you're using... I use tcsh and my .tcshrc says set prompt='%B%m%b %~ %# ' which gives me voyager ~ > when i'm logged in as myself, and voyager / # when I've sudo'd to root Notice the %~ which gives you the current working directory... Hope that helps. Regards, -Oscar -- For PGP Public Key: finger obonilla@fisicc-ufm.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message