Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2004 10:01:42 -0600
From:      "Steven N. Fettig" <freebsd@stevenfettig.com>
To:        questions@freebsd.org
Subject:   Hostname in shell (bash)?
Message-ID:  <403F69E6.9050701@stevenfettig.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I searched the archives and documents on bash, but I can't figure out 
how to put the hostname of the workstation I am on before the $ of the 
shell/command line.  Does anyone know how to add the hostname 
(preferably the first part - i.e. www, db1, etc) to the command line for 
bash 2.x?

Thanks,
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?403F69E6.9050701>