PATH environment variable

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help

PATH environment variable

Postby chinagreen on Tue Jan 05, 2010 2:41 am

I set the path using the following command:

export PATH=$:/var/lib/gems/1.8/bin

However, I'm missing /usr/bin. Tried using a comma, but the path isn't working. Suggestions???
My current path is:

$:/var/lib/gems/1.8/bin,/usr/bin

It isn't working, however.

Thanks.
chinagreen
Level 1
Level 1
 
Posts: 8
Joined: Fri Jan 01, 2010 7:08 pm

Linux Mint is funded by ads and donations.
 

Re: PATH environment variable

Postby moodywoody on Tue Jan 05, 2010 6:13 am

Using a colon instead of a comma should do the trick.

Code: Select all
export PATH=$PATH:/newpath1:/new/path2
moodywoody
Level 2
Level 2
 
Posts: 70
Joined: Fri Aug 07, 2009 5:27 am

Re: PATH environment variable

Postby chinagreen on Tue Jan 05, 2010 4:12 pm

Your suggestion was my solution! Thanks.

export PATH=$PATH:/usr/bin:/var/lib/gems/1.8/bin

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin:/var/lib/gems/1.8/bin
chinagreen
Level 1
Level 1
 
Posts: 8
Joined: Fri Jan 01, 2010 7:08 pm


Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 16 guests