<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in OS X: Change your PATH environment variable</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/os_x_change_your_path_environment_variable_mac_system_administration_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 10 Feb 2011 19:46:27 -0000</lastBuildDate><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-144458886</link><description>&lt;p&gt;I did all that's posted here and PATH is unchanged.&lt;br&gt;Mac must be more fail than I initially thought.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sdlfkjsdlfksjdf</dc:creator><pubDate>Thu, 10 Feb 2011 19:46:27 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-142809464</link><description>&lt;p&gt;How do I create a .profile file.&lt;/p&gt;&lt;p&gt;//PC-user for 20 years...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Hagemann</dc:creator><pubDate>Tue, 08 Feb 2011 14:45:39 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-131141709</link><description>&lt;p&gt;close terminal and reopen and the changes should be saved.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rara</dc:creator><pubDate>Tue, 18 Jan 2011 23:23:52 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-84435643</link><description>&lt;p&gt;This is not wrong.&lt;/p&gt;&lt;p&gt;The same path variable is not always desired for all users. And... not everyone uses pico.&lt;/p&gt;&lt;p&gt;Only use /etc/paths:&lt;br&gt;1) If you are SURE of what you are doing&lt;br&gt;2) You read what you edited/typed at least twice&lt;br&gt;3) and if ALL users on that machine need the same stuff in their path variable.&lt;/p&gt;&lt;p&gt;So there.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tired Of Knowitalls</dc:creator><pubDate>Tue, 05 Oct 2010 18:09:08 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-65851851</link><description>&lt;p&gt;If you do not have a .profile file, then just create one (in your home directory of course)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fx-mike</dc:creator><pubDate>Tue, 03 Aug 2010 10:32:42 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-62395400</link><description>&lt;p&gt;Sorry but this is completely wrong and there is no .profile file. This must be REALLY old or something.&lt;/p&gt;&lt;p&gt;To ACTUALLY change your path type: sudo pico /etc/paths&lt;/p&gt;&lt;p&gt;You can then edit your path variable and it will be remembered and usable by all users.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mitur Binesderti</dc:creator><pubDate>Thu, 15 Jul 2010 13:09:36 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-60679332</link><description>&lt;p&gt;I found the path files at /etc/paths Hope this works for you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frederik</dc:creator><pubDate>Mon, 05 Jul 2010 17:22:57 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-60678445</link><description>&lt;p&gt;I found that you have to use capital letters, try echo $PATH&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frederik</dc:creator><pubDate>Mon, 05 Jul 2010 17:20:15 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-57785791</link><description>&lt;p&gt;when I try to echo $path i get a blank line in Terminal. I want to setup Ruby on Rails in my usr/local/bin folder but can't seem to get confirmation that I have changed the PATH variable. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James</dc:creator><pubDate>Sun, 20 Jun 2010 17:45:52 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-50111192</link><description>&lt;p&gt;i'd love to see a reply to Davids Question :)&lt;br&gt;He asked ... &lt;br&gt;"I can't seem to find in my path files. Not in ~/.bashrc, ~/.profile, or anywhere else I've looked...where do those variables reside."&lt;/p&gt;&lt;p&gt;i.e when you make a change in sudo bash login ... WHAT exactly are you changing ... deff not any of those files in root user dir for sure ...&lt;/p&gt;&lt;p&gt;Any one know the answer ... i don't think so because everyone avoids this question ... &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Thu, 13 May 2010 10:13:44 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-42345037</link><description>&lt;p&gt;I used this to get quick access to mysql. instead of typing /usr/local/mysql/bin/mysql ... if you ADD&lt;br&gt;PATH=$PATH:"/usr/local/mysql/bin/"&lt;br&gt;export PATH&lt;br&gt;to the gumph already there... you only have to type 'mysql' into the terminal to run it - because it adds PATH to the other list of domains that it searches when it asks itself "what could he possibly mean by 'mysql' ?"  Cheers. I added this because i wasn't clear that you could state PATH more than once without overwriting it (which you can - it seems...)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nicholaswhitworth</dc:creator><pubDate>Tue, 30 Mar 2010 18:42:02 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-32609415</link><description>&lt;p&gt;Doesn't work on OS X 10.5.8&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"> Clark</dc:creator><pubDate>Thu, 04 Feb 2010 11:37:29 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-30754229</link><description>&lt;p&gt;no&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Thu, 21 Jan 2010 20:21:09 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-28036959</link><description>&lt;p&gt;When I start a new terminal, and echo $PATH it does not contain the change.  But when I type vi ~/.profile I see it.&lt;/p&gt;&lt;p&gt;What could be going on?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Timothy T.</dc:creator><pubDate>Mon, 04 Jan 2010 19:07:41 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-27853264</link><description>&lt;p&gt;Many thanks!  I've been wondering how to do this for some time now.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jason Woan</dc:creator><pubDate>Sat, 02 Jan 2010 19:57:23 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-22951106</link><description>&lt;p&gt;For some reason this is what my path is:&lt;/p&gt;&lt;p&gt;[code]&lt;br&gt;##&lt;br&gt;# DELUXE-USR-LOCAL-BIN-INSERT&lt;br&gt;# (do not remove this comment)&lt;br&gt;##&lt;br&gt;echo $PATH | grep -q -s "/usr/local/bin"&lt;br&gt;if [PATH=$PATH:/usr/local/bin&lt;br&gt;    export PATH&lt;br&gt;fi&lt;br&gt;export CLICOLOR=1&lt;br&gt;export LSCOLORS=ExFxCxDxBxegedabagacad&lt;br&gt;# Setting PATH for Python 3.1&lt;br&gt;# The orginal version is saved in .profile.pysave&lt;br&gt;PATH="/Library/Frameworks/Python.framework/Versions/3.1/bin:${PATH}"&lt;br&gt;export PATH&lt;br&gt;[/code]&lt;/p&gt;&lt;p&gt;This is even though I have Fink installed. I'm sorry to post this so randomly here but I don't know where else to put it. &lt;br&gt;When I use Fink, it works.... So I don't really know why my profile has this in it. this is in ~/.profile just so you're sure.&lt;/p&gt;&lt;p&gt;If you want to see what echo $PATH does this is it:&lt;/p&gt;&lt;p&gt;[code]&lt;br&gt;/Library/Frameworks/Python.framework/Versions/3.1/bin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/X11R6/bin&lt;br&gt;[/code]&lt;br&gt;So it's not as if I have a problem as of right now. But for some reason, as far as I can see I don't know where to edit my path. I'm sure I'll want to eventually.&lt;br&gt;Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cavin Graves</dc:creator><pubDate>Fri, 13 Nov 2009 16:55:11 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-18470232</link><description>&lt;p&gt;In my case, I need to add a directory to the path for both myself and for www-data. Is there a variation for adding the dir in /etc/profile?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Amgine</dc:creator><pubDate>Sun, 04 Oct 2009 09:54:26 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-12167739</link><description>&lt;p&gt;Thanks mate,&lt;br&gt;Just what I was looking for. It seemed to be a different way of doing things in Leopard than previous versions.&lt;br&gt;Cheers,&lt;br&gt;Mitch&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mitch</dc:creator><pubDate>Sun, 05 Jul 2009 02:53:59 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-8094104</link><description>&lt;p&gt;normal i would add an exra PATH in /etc/profile&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">marcel</dc:creator><pubDate>Sun, 12 Apr 2009 07:21:21 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-7833853</link><description>&lt;p&gt;david:  it's ok to have the same elements of a path variable in your path more than once; in some cases it is necessary.  As far as how to give one path priority over another, just make the one you want to load come first (reading left to right) in your PATH variable.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Beek</dc:creator><pubDate>Sat, 04 Apr 2009 18:24:40 -0000</pubDate></item><item><title>Re: OS X: Change your PATH environment variable</title><link>http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/#comment-6988792</link><description>&lt;p&gt;I have a question:  When I "echo $PATH" or type "env" which shows the same path I assume, I'm given a path that has a bunch of variables, namely /usr/bin/:/usr/bin/sbin, etc etc that I can't seem to find in my path files.  Not in ~/.bashrc, ~/.profile, or anywhere else I've looked...where do those variables reside.  I really just want to switch the order of /usr/bin and /usr/local/bin so my /usr/local/bin python2.6 install default starts instead of the version 2.5 that ships with Mac.&lt;/p&gt;&lt;p&gt;Hope that's not too confusing, I don't think it is.&lt;/p&gt;&lt;p&gt;Thanks for the otherwise helpful information...after adding a ~/.profile I noticed that the PATH in there precedes the other PATH attributes mentioned above so temporarily I've tacked /usr/local/bin on there and it works how I want...but now I have /usr/local/bin on the PATH twice and would like to remedy that.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">david</dc:creator><pubDate>Sun, 08 Mar 2009 04:44:00 -0000</pubDate></item></channel></rss>