Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the default terminal $PATH located on Mac?

Tags:

bash

path

macos

I have been looking throughout the system but I cannot find it. When I do echo $PATH I get the stuff I added, plus the default path. I do not have a .profile, and I do have a .bashrc, but the default path is not in there. I am looking for it just to know where it is located because all the tutorials explain that its in .profile... but what if you don't have one? Where is it located then? Anybody have any ideas?

like image 201
Andy Avatar asked Mar 23 '12 00:03

Andy


People also ask

Where is $path stored in Mac?

profile file on Mac is located in your user folder: ~/Users/youruser/ However, the . profile file is hidden.

What does $PATH mean Mac?

 PATH is a system-level variable that holds a list of directories. When you enter a command in the terminal, it's shorthand for a program with the same name. The system looks in each of the PATH directories for the program corresponding to the command.


1 Answers

If you do sudo man path_helper, it talks a bit about how it puts the path together. You might look in /etc/paths and /etc/paths.d. I did, and found what I was looking for.

like image 105
beOn Avatar answered Oct 22 '22 06:10

beOn