LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Unix
Author Message
spelltrap
Leg Humper
Leg Humper


Joined: 18 Aug 2002
Age: 22
Posts: 4770
Location: Limbo

Post Posted: Wed Jan 17, 2007 10:24 pm   Post subject: Unix Path Reply with quote Back to top  

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
View user's profile Send private message Send e-mail AIM Address
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4823
Location: On average, Cheltenham.

Post Posted: Thu Jan 18, 2007 3:11 am   Post subject: Reply with quote Back to top  

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!