From owner-freebsd-questions Sun Mar 10 1:50:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tninet.se (sheridan.tninet.se [195.100.94.102]) by hub.freebsd.org (Postfix) with ESMTP id 8700137B404 for ; Sun, 10 Mar 2002 01:50:08 -0800 (PST) Received: from cs.umu.se (h27n1c1o1023.bredband.skanova.com [213.64.164.27]) by sheridan.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP id 436287.753804.1015.0s4318461sheridan ; Sun, 10 Mar 2002 10:50:04 +0100 Message-ID: <3C8B2C4D.873DBE55@cs.umu.se> Date: Sun, 10 Mar 2002 10:50:05 +0100 From: Paul Everlund X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: sv,en MIME-Version: 1.0 To: Lute Mullenix Cc: questions@FreeBSD.ORG Subject: Re: Command not found References: <20020309204137.J13147-100000@agnes> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Lute Mullenix wrote: > > Just wondering why I get a command not found error when I try to start > apps that are listed when I run pkg_info. > > I'm pretty new at this game. If you use 'printenv PATH' you can see which directories are automatically prefixed for you. Commands in those directories, that are in the environ- ment variable PATH, can be executed without giving the full directory from root. An example: fw# printenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin: /usr/X11R6/bin:/root/bin This says, that if I is in /root and want to start a program there, I have to write like this: './program'. If I want to start a program in /bin I do not have to type '/bin/program' as the path is in the environment variable. When you have installed a new port/package, that probably is installed to /usr/local/bin, then do an exit from the shell, login again, and now the program will be found and started. Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message