Date: Wed, 26 Jun 2002 23:44:32 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Thomas Widlundh <tw@ettnet.se> Cc: freeBSD <freebsd-questions@FreeBSD.ORG> Subject: Re: comp name Message-ID: <20020626224432.GB68946@happy-idiot-talk.infracaninophi> In-Reply-To: <000701c21d4c$7ad27c90$2f056dd4@chappe2> References: <000701c21d4c$7ad27c90$2f056dd4@chappe2>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 26, 2002 at 10:02:03PM +0200, Thomas Widlundh wrote: > Where in fBSD can I find the name of my computer? Several ways: uname -n hostname grep hostname /etc/rc.conf > That is, the name of the comp in a network. The hostname of the machine is not necessarily the same as the name used to access it over a network. ifconfig -a | awk '/inet / { print $2 }' | xargs -n 1 host Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK 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?20020626224432.GB68946>