FAQ: Environment - PATH

This community-built FAQ covers the “PATH” exercise from the lesson “Environment”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn the Command Line

FAQs on the exercise PATH

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Where are environment variables HOME, PATH etc… initially defined ?

When I add a new entry to bash_profile and source it, the new alias takes effect. However, on removing this entry, saving it and source-ing the bash_profile again, the alias still persist. why is that ?

If you manually type in the things from your bash_profile, would you expect the alias to disappear? Probably not, because none of the commands were to remove it.
On the other hand, if you start bash and don’t define it, then it won’t be there.

1 Like

“For example, many commands we’ve learned are scripts stored in the /bin directory”. What does this line mean?