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.
PATH environment variable
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
PATH environment variable
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: PATH environment variable
Using a colon instead of a comma should do the trick.
Code: Select all
export PATH=$PATH:/newpath1:/new/path2
Re: PATH environment variable
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
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