| Author |
Message |
spelltrap
Leg Humper


Joined: 18 Aug 2002 Age: 23 Posts: 4770
Location: Limbo
|
Posted:
Wed Jan 17, 2007 10:24 pm Post subject: Unix Path |
|
A seemingly simple question that I just can't seem to answer with Google:
How do I include a directory in my path? Like, if I wanted to include the java directory so that I just had to type javac <filename> instead of /usr/java/bin/javac <filename>, how would I do that? |
_________________ "I'm not crazy about reality, but it's still the only place to get a decent meal." ~Groucho Marx
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4959
Location: On average, Cheltenham.
|
Posted:
Thu Jan 18, 2007 3:11 am Post subject: |
|
On Unix:
Type printenv at the command line to see your current environment variables.
Type setenv variable value to set an environment variable.
Type unsetenv variable to unset an environment variable.
On Linux:
Type env at the command line to see your current environment variables.
Type env variable=value to set an environment variable.
Type env -u variable to unset an environment variable. |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.
If only 20% of your staff is programmers, and you can save 50% on salary by outsourcing programmers to India, well, how much of a competitive advantage are you really going to get out of that 10% savings?
|
|
|
|
|
|
|