I'm trying to order the path entries on my mac, but it seems that my /etc/paths
file is Locked.
I tried the instructions on this link, but I can't save the file as it is locked. I even tried chflags nouchg /etc/paths
but that did not work too. Can you help me with this?
ls -l /etc/path
.PATH
in your~/.bashrc
..bashrc
is not read in OSX because for some strange reason, the default terminal starts a login shell, the file to modify is~/.profile
instead. In any case, the OP is trying to reorder, not re-set their path and setting it in.profile
would mean either overwriting the original, having duplicate entries or an unnecessary amount of scripting.