From owner-freebsd-questions Tue Oct 12 23:13: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from s8-37-26.student.washington.edu (S8-37-26.student.washington.edu [128.208.37.26]) by hub.freebsd.org (Postfix) with ESMTP id 6EC7914CEF for ; Tue, 12 Oct 1999 23:13:02 -0700 (PDT) (envelope-from jcwells@u.washington.edu) Received: from localhost (jcw@localhost) by s8-37-26.student.washington.edu (8.9.3/8.9.3) with ESMTP id LAA29344; Wed, 13 Oct 1999 11:08:36 GMT (envelope-from jcwells@u.washington.edu) X-Authentication-Warning: s8-37-26.student.washington.edu: jcw owned process doing -bs Date: Wed, 13 Oct 1999 11:08:35 +0000 (GMT) From: "Jason C. Wells" X-Sender: jcw@s8-37-26.student.washington.edu Reply-To: "Jason C. Wells" To: "rick - SomersNet, Inc." Cc: freebsd-questions@FreeBSD.ORG Subject: Re: bash paths In-Reply-To: <380417D2.ADF50C70@123hostit.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 12 Oct 1999, rick - SomersNet, Inc. wrote: >I am running FreeBSD for the first time, and I can't seem to figure out >where it is looking when I run a bash command with no paths.. > >such as: ># pico >instead of ># /usr/local/bin/pico > >I know on RedHat Linux I can make a sim link in the /usr/bin and >/usr/sbin directories and it works... So how do I do this on FreeBSD? Symlinking the world is phooey SystemVism. You should modify your path properly to find your programs rather than modify the system so that paths don't need to be changed. To see where your path is... $ echo $PATH To see where a specific binary is coming from... $ which command If there happen to be two of the same command on a system, the first one encountered in the search path will be returned by which. Thank You, | http://students.washington.edu/jcwells Jason Wells | "Those who would trade freedom for security deserve neither | freedom nor security." - Benjamin Franklin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message