PATH environment variable

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
chinagreen

PATH environment variable

Post by chinagreen »

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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
moodywoody

Re: PATH environment variable

Post by moodywoody »

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

Code: Select all

export PATH=$PATH:/newpath1:/new/path2
chinagreen

Re: PATH environment variable

Post by chinagreen »

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
Locked

Return to “Installation & Boot”