$PATH

Ok, this one I find very confusing :slight_smile:

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?

You forgot to include the commands?

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

(attachments)