Date: Sun, 24 Mar 2002 16:52:56 -0500 (EST) From: Peter Leftwich <Hostmaster@Video2Video.Com> To: Aaron Siegel <bsd-daemon@attbi.com> Cc: FreeBSD Questions <FreeBSD-Questions@FreeBSD.Org> Subject: Re: Promt Message-ID: <20020324164739.I50035-100000@earl-grey.cloud9.net> In-Reply-To: <3C9E1AE8.1000203@attbi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 24 Mar 2002, Aaron Siegel wrote: > Hello - Add the line > hostname="<enter what ever name you want for your computer>" > in the rc.conf file. You can use the hostname as root to change it at the prompt. > Andrew Boothman wrote: > >> Hi, I use to login as root on "Alt+F1" and as user on "Alt+F2". I connect the internet from the user. Whole of a sudden, sometimes, the root prompt is changed from an ordinary # to "ppp-212-#" Why is that? From where does the prompt get it's name? > > Its sounds like your ISP might be resetting your hostname when you connect to the net. I'm not sure, but try a 'host <your-ip-address>' and see if it returns ppp-212-..... > > If that's the case, you can tell dhclient to override the hostname setting, see man dhclient or ask again on the list. > > Andrew. (By the way you misspelled prompt.) :) If your post is because you just want your prompt to be "#" then read up on sh if you use that as your shell and set your prompt to BarneyPurpleDinosaur if you wish *grins* I use tcsh and it has a command "set prompt = 'whatever you including bold/unbold/command#/time etc'" (man tcsh) The difference in prompts is because sometimes you are online and other times offline, it would seem. -- Peter Leftwich President & Founder Video2Video Services Box 13692, La Jolla, CA, 92039 USA +1-413-403-9555 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?20020324164739.I50035-100000>