The concept that software will look in several folders, in the order stored as the path, to find which programs should be allowed to run.

learn more… | top users | synonyms

35
votes
1answer
15k views

Open Finder window from current Terminal location?

If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window? Note: This is the opposite of opening a Terminal from Finder.
22
votes
5answers
13k views

How to set PATH for Finder-launched applications

Apps launched via Finder seem to not respect the PATH as set in .bash_profile. So when I try to run code from an IDE (Intellij) I no longer have access to programs in /usr/local/bin, which is ...
16
votes
2answers
11k views

Amending PATH so that /usr/local/bin is ahead of /usr/bin

I'm trying to install brew but get the following warning: Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. ...
13
votes
4answers
18k views

How to change PATH environment variable to OS X 10.8 Mountain Lion that will be visible to GUI applications?

I tried all methods I heard of for setting environment variables on OS X 10.8 but none of them seems to work. To test, run a bash script from inside a gui application like Eclipse or IntelliJ IDEA. ...
9
votes
2answers
9k views

Reset your PATH variable

I stuffed up (basically wiped) my PATH variable. Is there any way to reset it to the default? I look at How do I reset the $PATH variable on Mac OS X?, but I find it very confusing. As far as I ...
9
votes
2answers
6k views

In OSX Yosemite, why can I set many environment variables for GUI apps, but cannot set the specific variable PATH

After I had sorted out OSX' PATH issues up to the Mavericks release, the problems come back in Yosemite!!! So I want to mimic the old launch.conf feature in the new Mac OSX 10.10 Yosemite release, ...
7
votes
2answers
11k views

GCC not found, but Xcode is installed

I have Xcode installed, but when I type gcc in terminal I get "command not found". Maybe I messed up the $PATH variable? What is suposed to be the default value? EDIT: (...):/ imac2$ echo $PATH ...
7
votes
4answers
787 views

How do I change the location of screen captures on 10.5?

As a developer, I take a lot of screen captures. I often take a lot to share with StackExchange members on chat. The problem is my desktop is so cluttered with screen captures that they're now ...
6
votes
2answers
2k views

How to change path in Finder by entering the path manually?

It seems that by default there is no way to enter a whole path in the Finder, so instead one should traverse through all the tree to get somewhere deep in the filesystem. Is there anyway to overcome ...
6
votes
3answers
7k views

How can I add a path to the PATH environment variable?

I want to add a path to the PATH environment variable? I have tried with export PATH=/mypath:$PATH and it works. But the next time I start the Terminal, my new path is not int the PATH environment ...
6
votes
5answers
18k views

OS X Mavericks bash_profile paths don't work

I need to create a new path in OS X Mavericks. To do so, I edited .bash_profile: export LC_ALL="en_US.UTF-8" export PGHOST=localhost export PATH=$PATH:/usr/local/heroku/bin export ...
5
votes
2answers
4k views

In Mountain Lion how do I set, in one place, the PATH environment variable for all newly launched applications?

On Ask Different there are many questions regarding the PATH environment variable and how to set it for applications launched by a shell, by spotlight or via the finder (typical questions: How to set ...
5
votes
2answers
282 views

How are paths to files and folders constructed in OS X?

I need to indicate a right file path to read a .csv file into R on OS X, but how can I find where the file is stored? Looking at Excel files, the file path starts at users/…, but there is no ...
5
votes
4answers
693 views

Newly Installed App (gem) Via Terminal, Path?

I have used sudo gem install to install a few gems. My question is how do I know where the executable was installed, so I can add it to the path in .bash_profile?
5
votes
1answer
12k views

Mac OS X Mavericks - add to path

I'm trying to set up a phonegap project and while trying to add a platform it outputs the following error: Error: The command "android" failed. Make sure you have the latest Android SDK installed, ...
5
votes
3answers
7k views

How is my $PATH variable built in Mountain Lion?

I've recently installed Homebrew on my Mac and it's complaining that /usr/bin occurs before /usr/local/bin in my $PATH variable, meaning that system-provided programs will be used instead of those ...
4
votes
2answers
158 views

How to recursively edit path of symlinks?

This is an additional question that began with this one - How to edit Symbolic Links in OS X? Now that I know how to edit the path symlinks point to, I'm trying to figure out how to do this ...
4
votes
2answers
673 views

How to make an executable .py available everywhere on OS X?

I have this directory /foo/bar/. Inside, I have a python file named myfile.py. I made it executable by adding (at the top): #!/usr/bin/env python Then, I made it executable by issuing chmod +x ...
4
votes
3answers
1k views

How do I add a new route to the PATH variable?

Although this question is being answered many times, I could not find any help from previous posts, so here it is again. I have tried to add a new route to PATH variable with no success. I have ...
3
votes
2answers
313 views

Removing the builtin command-line utilities from PATH, zsh

Okay, so I'm a Linux power user, that is I feel most at home when I have access to the command-line, and I'm very much used to using GNU coreutils, so now that I've installed GNU coreutils on Mac OS X ...
3
votes
3answers
3k views

Delete things from $PATH

I fiddled with my $PATH and now it's not working correctly anymore. So I thought, well, just remove the last things I added. However, I can't seem to figure out how. I added things like so export ...
3
votes
2answers
2k views

I want to remove an entry in my $PATH

I'm running OS 10.8. When I echo $PATH my terminal outputs ...
3
votes
1answer
4k views

Homebrew PATH error Mac OS X 10.6.8

So I've found this wildly helpful blog (http://blog.wyeworks.com/) and managed to muddle my way to step 5 (after leaving ridiculous comments after getting stuck on step one) $ brew install ...
3
votes
1answer
52 views

Adding TextWrangler to the path environment

I would like to add TextWrangler to the path environment. I have tried with this command on the terminal: alias textwrangler=/Applications/TextWrangler.app and then tried to call it just typing ...
3
votes
1answer
97 views

Exporting the filepath of all music files to a text file

I'd love to know the syntax within Terminal to export the filename and path of all my music of various types (I have legacy Windows .wma files too). I'd presumably export those file to a .txt or .xls ...
2
votes
2answers
725 views

Use downloaded Git instead of preinstalled Git

I am following the Lynda.com Git Essential Training. After he downloads and installs Git he enters which git and gets /usr/local/git/bin/git However when I do it I still get the preinstalled path ...
2
votes
1answer
443 views

Where should shell tools be installed?

Are there Apple guidelines for where user shell tools in Mountain Lion should be installed? Some (e.g. TeX, or Apple's Git) end up in /usr, and others (e.g. X11) seem to end up in /opt (sometimes with ...
2
votes
2answers
2k views

Adding gedit to my PATH

I finally made the jump and got a MacBook, and I'm trying to move in. I have the OSX port of gedit installed, but I'm having trouble adding it to my PATH. My current PATH looks like this: export ...
2
votes
2answers
191 views

make it easier to call often used terminal commands

I have a java tool that I use quite often from the command line but to use it I have to type java -jar dsim.jar. I want to make it so that I can call it just by typing dsim regardless of what ...
2
votes
1answer
98 views

How -exactly- do I remove a specific directory, from my PATH, in OSX, Mavericks?

Ok - so this issue has become somewhat of a white whale for me. I have browsed some of the questions here, but I cannot seem to figure out how to, very simply, delete a directory from my PATH. (I ...
2
votes
2answers
923 views

How to use /etc/paths.d to add executable files to my path?

I am trying to use /etc/paths.d to add an executable to my path variable but I have no success so far. The full path of the executable file is: /opt/ImageMagick/bin/convert /etc/paths.d contains two ...
2
votes
2answers
544 views

Change Web Sharing “Sites” folder to SkyDrive?

I'm building a web site. There are three Macs that I commonly use for development, depending upon my location: an iMac in San Diego, and iMac in Vegas, and a MacBook Air in all other places. As I move ...
2
votes
1answer
339 views

Need help with update to latest Git using Terminal

I was trying to update to the latest Git version in my Terminal. I've no clue what I did and all I remember was that I removed the previous installed Git I think because when i run the following ...
2
votes
1answer
51 views

Is there any way to get a path to a file in the GUI in Yosemite?

In Mavericks it was simple: click "Get Info" on any file and you could copy/paste the file path. This is no longer included in Yosemite. I need to need to copy/paste paths frequently, like ...
2
votes
1answer
31 views

Windows bootcamp file path on 2008 Intel iMac

My iMac hdd is starting to go and I am trying to recover files I had on the Windows OS through boot camp. I cant seem to find the path to get to my Windows directory. the only way I can get in the hdd ...
2
votes
2answers
185 views

AppleScript - Get the path to an application without opening it

I need to store the path to Chromium to use later in the script, however running set chromium to (POSIX path of (path to application "Chromium")) in AppleScript Editor opens the application. How can I ...
2
votes
2answers
212 views

How do I change $PATH and set it to the default directory?

For some reason when I run echo $PATHI get the following directory: /Users/<home>/Library/Applications/. How do I set it back to its default location so that I don't have to run this command, ...
1
vote
3answers
4k views

How do I undo “export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile”

I was trying to install homebrew, which wasn't working. It told me to do echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile. However this wasn't having any affect, and I thought maybe it ...
1
vote
2answers
3k views

Terminal $PATH error

I was adding a $PATH to .bash_profile: PATH="/Applications/MAMP/bin/php/php5.3.6/bin:$PATH" So I could install PEAR on MAMP. That all worked, but now I have an this error each time I start up: ...
1
vote
1answer
124 views

Adding Mac-specific directory to PATH when home is shared

My /home/myusername/ directory is provided through a network, and looks exactly the same on my Linux machine and my Mac Mini. I'd like to add to PATH a directory of Mac-specific software in my home, ...
1
vote
1answer
4k views

How to remove an environment variable on Snow Leopard

I'm running under Snow Leopard 10.6.8 and I recently added an environment variable which it seems to be messing my bash terminal (I guess). What I did is add the variable ...
1
vote
2answers
446 views

brew path didn't cover sbin

I have problem when I used brew to install aircrack-ng. I found out that it cover path /usr/local/Cellar/aircrack-ng/1.1/bin but it couldn't find commands after I tried tab-completion in path ...
1
vote
1answer
401 views

How to add a directory to my path that includes a colon and a space?

I installed MIT/GNU scheme and am trying to add the directory to my $PATH variable so that I can run it from Terminal. The app name MIT:GNU Scheme.app is a veritable "perfect storm" (for path names) ...
1
vote
1answer
1k views

Where are my all installed programs?

I am new to Mac OS X and till the time I was using Windows 7/8. I tried to download and install programs in Mac OS X, but I do not see them in Launchpad. Where are all my programs are going. ...
1
vote
2answers
328 views

Upgrade RVM and now PATH is broken

My PATH no longer includes /usr/local/bin even though it is the first line of /etc/paths: #/etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin $PATH: $ echo $PATH ...
1
vote
1answer
35 views

What is the recommend location for storing compiled binaries for NON-admins?

I know that administrators should be installing such binaries in /usr/local/bin, but what if a user doesn't have admin access? And/or what if a user wanted said binaries to travel with their home ...
1
vote
1answer
48 views

Where can I test a path?

I have tto check a path like "volume1:FTPRoot:StenRoot:Stnp00:A12:B38:f000031913". Is there an easy place where I can paste this to unsure me that this path is valid ? PS / I can follow it manually, ...
1
vote
1answer
58 views

Script doesn't find file

Suppose my_folder contains my_script and my_program. my_script tries to run ./my_program -myoptions. It works when I cd into the directory, but not when I double click on it. Here is the output: ...
1
vote
1answer
13 views

How to configure $PATH (for LaTeX) and run commands in Terminal?

After consulting the programming section of StackExchange, I have been referred to apple.stackexchange instead. I am using the following template: ...
1
vote
1answer
45 views

Fixing a Messed Up $PATH in Yosimite

I had troubles installing node with Homebrew as Homebrew does something weird to the node install that installing Yeoman generators seems to be hindered a bit. My issue, however, is that I think ...