From owner-freebsd-questions Wed Jun 26 16:39:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by hub.freebsd.org (Postfix) with ESMTP id 6CC3C37B98B for ; Wed, 26 Jun 2002 16:04:50 -0700 (PDT) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.4/8.12.4) with ESMTP id g5QMib4W069172; Wed, 26 Jun 2002 23:44:37 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.4/8.12.4/Submit) id g5QMiWZc069171; Wed, 26 Jun 2002 23:44:32 +0100 (BST) Date: Wed, 26 Jun 2002 23:44:32 +0100 From: Matthew Seaman To: Thomas Widlundh Cc: freeBSD Subject: Re: comp name Message-ID: <20020626224432.GB68946@happy-idiot-talk.infracaninophi> References: <000701c21d4c$7ad27c90$2f056dd4@chappe2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c21d4c$7ad27c90$2f056dd4@chappe2> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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