From owner-freebsd-questions@FreeBSD.ORG Tue Nov 4 06:20:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 751A316A4CF for ; Tue, 4 Nov 2003 06:20:21 -0800 (PST) Received: from be-well.no-ip.com (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id C024143F75 for ; Tue, 4 Nov 2003 06:20:20 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.no-ip.com (Postfix, from userid 1147) id 4156C3B05; Tue, 4 Nov 2003 09:20:20 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Xpression" References: <000d01c3a2dc$7db318e0$0801a8c0@bloodlust> From: Lowell Gilbert Date: 04 Nov 2003 09:20:20 -0500 In-Reply-To: <000d01c3a2dc$7db318e0$0801a8c0@bloodlust> Message-ID: <44ad7cdxln.fsf@be-well.ilk.org> Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: FreeBSD-questions Subject: Re: environment variables and hostname... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: FreeBSD-questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 14:20:21 -0000 "Xpression" writes: > Hi list, there is a way to list or know the environment variables, > in fact, I want to know if my hostname is stored in a variable, and all > variables that maintain the system...thanks... How to get the environment variable list depends on your shell. On sh-style shells, it's usually "set". On csh-style shells, I think it's "env". But for getting your hostname, the canonical method is hostname(1).