Thursday, January 1, 2015

What are PATH and other environment variables, and how can I set or use them?

Questions about



  • setting environment variables

  • the PATH


are very common here, and in most cases the answers are very similar to each other. In the future it would be nice to have a good Q/A for this.


So the question is: What are environment variables, like the executable PATH, and how can I change and use them on major operating systems?


A good answer would include a simple explanation of what environment variables and especially PATH mean to the OS, as well as simple guidelines on how to set and read them accordingly.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...