Click to See Complete Forum and Search --> : PATH?
In windows, it is the PATH system variable that tells it where to look for commands. What is this in Linux and how would one go about setting it?
i.e. When I type: "java <classname>", I want it to look in the /usr/jdk13/bin directory and find the java command.
Thanks
flintstone
02-06-2001, 02:30 PM
from one newbie to another.
if u list the hidden files in ur home directory, u can find the bash.profile, i think u shd set the path there. syntax goes something like: PATH= /home/xyz:/usr/sbin:your java path:..
check it out and dont mail me if ur box burns up! :D
pbharris
02-06-2001, 02:31 PM
echo $PATH is what I use to check paths, yopu can pretty easily set you own system varibales (e.g. export CVSROOT=/this/path)
YaRness
02-06-2001, 02:32 PM
in linux, it's $PATH, and it's set in a number of places, including '/etc/profile' and '~/.bashrc'. also, if you happen to be in the same directory as the program/script, you can do './whateveryouwanttorun'.
X_console
02-06-2001, 03:16 PM
Do this as root:
echo "export PATH=$PATH:/usr/jdk13/bin" >> /etc/profile
Then logout and login and the PATH has been set.
Thank you everyone. It worked great.