Date: Tue, 29 Jun 2004 08:11:12 +0000 From: "clayton rollins" <crollins666@hotmail.com> To: freebsd-questions@freebsd.org Cc: freebsd@stateautomation.com Subject: [from newbies] RE: Command path Message-ID: <Sea1-F67sWHOg3V5EUH0005cc79@hotmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Sea1-F67sWHOg3V5EUH0005cc79>