1

So I'm trying to clean up my environment path ($PATH) I know that $PATH gets its value from these places:

/etc/paths
/etc/paths.d
/.zshrc
/.bash_profile

But it seems like there are more places that the $PATH gets its value. For instance, my current $PATH is

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin

I can find where all of them are defined except for /Library/Apple/usr/bin

Macos Default defined in - '/etc/paths'
 /usr/local/bin:
 /usr/bin:
 /bin:
 /usr/sbin:
 /sbin:

DotNet defined in - '/etc/paths.d' /usr/local/share/dotnet: ~/.dotnet/tools:

This one I don't Know? - not on my /etc/paths or bash or zsh /Library/Apple/usr/bin

PS: I know /Library/Apple/usr/bin must be a default path for macos, I just want to know where this is defined or exported from.

Darren
  • 11

0 Answers0