| Author |
Message |
spelltrap
Leg Humper


Joined: 18 Aug 2002 Age: 22 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: 4823
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.
So I'm cruising in my '91 Daihatsu blasting Vanessa Carlton's rockin' smash hit "A Thousand Miles," when it suddenly occurs to me:
"Am I too gangsta? Am I too hardcore and menacing for this world?" I just might be.
- Tatsuya Ishida
|
|
|
|
|
|
|