From owner-freebsd-questions Fri Jan 16 10:08:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03809 for questions-outgoing; Fri, 16 Jan 1998 10:08:11 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cerberus.partsnow.com (gatekeeper.partsnow.com [207.155.26.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA03788 for ; Fri, 16 Jan 1998 10:07:56 -0800 (PST) (envelope-from don@partsnow.com) Received: (from bin@localhost) by cerberus.partsnow.com (8.8.5/8.6.9) id KAA05902; Fri, 16 Jan 1998 10:05:52 -0800 (PST) X-Authentication-Warning: cerberus.partsnow.com: bin set sender to using -f Received: from wildeweb(192.168.100.10) by cerberus.partsnow.com via smap (V2.0) id xma005898; Fri, 16 Jan 98 10:05:50 -0800 Message-ID: <34BFA1AC.E8805F3C@partsnow.com> Date: Fri, 16 Jan 1998 10:06:36 -0800 From: Don Wilde Reply-To: don@partsnow.com Organization: Soligen, Incorporated X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Frank Griffith CC: questions@FreeBSD.ORG Subject: Re: Prompts References: <199801151522.IAA03272@idfw.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk Frank Griffith wrote: > > I have been looking at some of the docs and several > e-mail responses. The % prompt keeps showing up. > However, in using FreeBSD as root I only see a # prompt > and when logged in as other user I see the $ prompt. > > How do I get to the % prompt? Since nobody else has picked this up, I'll help. This depends on which shell you have enabled for each user. By default, the system loads csh for root and sh for regular users, but you can change this if you have added other shells from the ports collection. Prompts at different points are different to help clue you int to what the system expects. When you start your session, the shell reads startup files for you as a user which tell the shell how to configure itself for your convenience. In sh, the file is .profile in your home directory. In csh, it's .cshrc. You can customize the prompt from there. Read the man pages before you make changes, 'man csh' and 'man sh' are your friends here. I personally like BASH2.0 from the ports, but supposedly Real Power Users use csh... :} A good reference on shell tricks is 'UNIX Power Tools' by O'Reilly. One final note: csh is used for root for good reason. Bash uses libraries which are not available to the system at certain early stages of bootup. However, If you don't know enough to understand this, it's not going to do you any good anyway, so for a personal system go ahead and choose whatever shell you like. :) -- oooOOO O O O o * * * * * * o ___ _________ _________ ________ _________ _________ ___==_ V_=_=_DW ===--- Don Wilde [don@PartsNow.com] [http://www.PartsNow.com ] /oo0000oo-oo--oo-ooo---ooo-ooo---ooo-ooo--ooo-ooo---ooo-ooo---ooo-oo--oo