11
3
Many programming tutorials ask users to add something to their PATH
but don't explain what it is. The existing resources that explain the PATH
to users new to the command line are not very good.
What is the Unix
PATH
variable?I just downloaded a program, then tried to run a command in the terminal and got
command not found
. What does this have to do with thePATH
?I added something to the
PATH
with this command and then things worked:export PATH=/path/to/some/bin:$PATH
...but then I got
command not found
again the next time I started my computer. How can I make it stay on thePATH
every time I open the Terminal?What's the best way to determine if a program like Git or
gcc
is already loaded on my computer?
3I've read through many of the answers on SO and I haven't found a answer that answers every one of these questions in a way a newbie can understand. I want something I can link new command line users to. It was my hope to add this as community wiki and attach significant bounty to it. – Kevin Burke – 2012-12-11T08:02:05.127
4I bet I can find 50 hits if I search google for this question. Why can't you? – trojanfoe – 2012-12-11T08:02:05.777
2And if none of those links points to SO for a question that's qualified to be here, then it should be added here. We want SO to be where Google goes for programming questions. – None – 2012-12-11T08:19:18.677
Please see this MSO post for Kevin's motivations in asking this question. He'll most likely make an [edit] to clarify how this information is helpful.
– jmort253 – 2012-12-11T08:41:16.3871@jmort253: Well, he should start doing it quickly. 4/5 close votes. I won't close because I know wants to edit the question, but he better make it quick. – Madara's Ghost – 2012-12-11T09:03:41.517