linux> ./fooor implicitly by adding a dot (.) at the end of your search path (see next question).
set path=($path .)If csh, add the following line to your ~/.cshrc file:
set path=($path .)If bash, add the following line to your ~/.bashrc file:
PATH=${PATH}:.If sh, add the following line to your ~/.profile file:
PATH=${PATH}:.If ksh, add the following line to your ~/.kshrc file:
PATH=${PATH}:.The change to your path will go into effect the next time you run a new shell process, for example, when you log in. If you don't want to wait, you can type the appropriate line directory to the shell. For example, if you are running tcsh on a Linux box, type:
linux> set path = ($path .)Caution: Never add a dot to the beginning or the middle of your path. It will make you vulnerable to an exploit where the attacker places a bogus set-userid enabled binary in your home directory.
linux> echo $SHELL /usr/local/bin/tcsh