> Ok... Dumb question but...

Hardly...

> I install a package and its dependancies.
> The executable is in /etc/games/
> I type in the filename but get the linux equiv
> of a DOS 'bad command or filename'.
> I'm puzzled so I copy it to /bin where I type in
> the filename again and it runs.
> 
> So two questions...
> Why isn't the present working directory in the path?
> What config file do I edit to place new directories
> in the path.


To edit your path if you're using bash for a shell
you need to edit .bash_profile in your home directory.
Bash will search your path in the order you have directories
listed in there, and you need to seperate entries with
colons. For example:

PATH=$HOME/bin:/usr/local/bin:/usr/sbin

To add "current directory", using my example above, change it 
to look like this:

PATH=$HOME/bin:./:/usr/local/bin:/usr/sbin

Note the entry of "./" between $HOME/bin and /usr/local/bin.
Alternatively, to make something in the current directory 
run, you can just type ./program to run "program" in the
directory you're in.


---
Bill Kocik
Information Systems
Medar, Inc.
E-mail: [EMAIL PROTECTED]
Web:    http://www.medar.com

Reply via email to