# $PATH

**URL:** <https://forum.ansible.com/t/path/33296>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [July 1, 2020, 6:25pm UTC](https://forum.ansible.com/t/path/33296 "2020-07-01T18:25:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_De\_Blende](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@Tom\_De\_Blende](https://forum.ansible.com/u/Tom_De_Blende)\
**Post date:** [July 1, 2020, 6:25pm UTC](https://forum.ansible.com/t/path/33296/1 "2020-07-01T18:25:14Z")

</div>

Ok, this one I find very confusing 🙂

![](https://files.slack.com/files-pri/T03BCD1AD-F0166GQ7E6A/image.png)

aws executable is in /usr/local/bin. That is being added to $PATH via /etc/bashrc

So the first command fails, which would lead me to believe /usr/local/bin is not in $PATH. Which would make sense from what I read when you don’t specifically source it.

If I do source it (command 3), then all is well.

What I don’t understand, is why command 2 shows /usr/local/bin as part of $PATH without sourcing it first. And if it’s there, why command 1 is not using it.

Anyone care to deconfuse me?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [July 1, 2020, 7:06pm UTC](https://forum.ansible.com/t/path/33296/2 "2020-07-01T19:06:16Z")

</div>

You forgot to include the commands?

---

<div class="post-metadata">

**Author:** ![Tom\_De\_Blende](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@Tom\_De\_Blende](https://forum.ansible.com/u/Tom_De_Blende)\
**Post date:** [July 2, 2020, 5:55am UTC](https://forum.ansible.com/t/path/33296/3 "2020-07-02T05:55:16Z")

</div>

I thought I included a screenshot with the commands and their results? I’ll add it again.

> **(attachments)**
>
> ![ansible.png](https://us1.discourse-cdn.com/ansible/original/2X/a/a242e9d280174fd940b504a7412e881c740aef86.png)
