From owner-freebsd-questions@FreeBSD.ORG Tue Jun 29 08:11:17 2004 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 8F30816A4CE for ; Tue, 29 Jun 2004 08:11:17 +0000 (GMT) Received: from hotmail.com (sea1-f67.sea1.hotmail.com [207.68.163.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 790FA43D53 for ; Tue, 29 Jun 2004 08:11:17 +0000 (GMT) (envelope-from crollins666@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 29 Jun 2004 01:11:13 -0700 Received: from 216.19.22.118 by sea1fd.sea1.hotmail.msn.com with HTTP; Tue, 29 Jun 2004 08:11:12 GMT X-Originating-IP: [216.19.22.118] X-Originating-Email: [crollins666@hotmail.com] X-Sender: crollins666@hotmail.com From: "clayton rollins" To: freebsd-questions@freebsd.org Date: Tue, 29 Jun 2004 08:11:12 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 29 Jun 2004 08:11:13.0218 (UTC) FILETIME=[A4B52A20:01C45DB0] cc: freebsd@stateautomation.com Subject: [from newbies] RE: Command path X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 08:11:17 -0000 Hi, On June 29, 2004, freebsd@stateautomation.com wrote: > >Is there any reason why I can't directly run sysinstall when I am already >currently in the /stand directory? The only way I can execute it is to >enter /stand/sysinstall >Is there a path configuration I can edit to get FreeBSD to search the >current directory as well as common places like /bin? > >JS > I can't reply on newbies@; all technical advice should at least be subjected to wide peer review. (It's in the list charter...) I'm replying on questions@, which is more proper for this discussion. I don't know the rhyme or reason to which shells include or don't include the current directory in the default PATH or why... That discussion aside, the PATH is an environment variable. The way you set (and maybe view) it is shell-dependent. I'll give descriptions for sh and (t)csh, which are most common; if you use another, you might write back and be more specific. In both shells, you can view environment variables with the command 'env'. In sh, you could do: 'PATH=.:$PATH' in (t)csh, you could do: 'setenv PATH .:$PATH' Adding such a statement to your ~/.shrc and/or ~/.cshrc startup script would save you from typing it each time... Hope that helps, Clayton _________________________________________________________________ >From ‘will you?’ to ‘I do,’ MSN Life Events is your resource for Getting Married. http://lifeevents.msn.com/category.aspx?cid=married