I have noticed that almost every website tells you to add something like export PATH=/usr/local/share/python:$PATH
in your .bashrc
or .bash_profile
when modifying a PATH
.
When you want to know what your PATH is, you can echo $PATH
, but you get this one-liner response which is kind of hard to read
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
So I found out you can just sudo vi /etc/paths
and not worry about adding anything to your bash profiles. Is this a bad method? It seems to be more clear and easier in my opinion. I guess maybe people are afraid you can mess up the paths
and forget how to revert it back to the original state?
By the way, I'm running Mac Lion. But my question is for Linux in general.