# Command not found

**URL:** <https://forum.cardano.org/t/command-not-found/39002>\
**Category:** Operate a Stake Pool\
**Created:** [22 August 2020 16:16 UTC](https://forum.cardano.org/t/command-not-found/39002 "2020-08-22T16:16:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MorganH](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@MorganH](https://forum.cardano.org/u/MorganH)\
**Post date:** [22 August 2020 16:16 UTC](https://forum.cardano.org/t/command-not-found/39002/1 "2020-08-22T16:16:09Z")

</div>

Hi,

On following the tutorial, I’ve built the node using  
cabal build all

But everytime I terminate a terminal and log back in, if I enter cardano-node or cardano-cli I get an error: Command not found.

What I found out is that on running an update to newer version (which is the same version I already setup 1.19.0), that solves the issue, and I’m able to run cardano-node and cli until I have to close and log back in, in which case I again go through the previous steps of running an update.

Could you help understand what I’m missing?

Thank you!

---

<div class="post-metadata">

**Author:** ![erikd](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/erikd/32/813_2.png) [@erikd](https://forum.cardano.org/u/erikd)\
**Post date:** [23 August 2020 00:47 UTC](https://forum.cardano.org/t/command-not-found/39002/2 "2020-08-23T00:47:50Z")

</div>

This is almost certainly due to the `PATH` environment variable being set during the running of the script. and not being set when you first log back in.

You should re-read the documentation that goes along with the script you are running (or read through the script) looking for changes to `PATH` . Once you have found that required change, you should add that to you ~/.bashrc` (or whatever shell you are running) file.

---

<div class="post-metadata">

**Author:** ![MorganH](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@MorganH](https://forum.cardano.org/u/MorganH)\
**Post date:** [23 August 2020 13:06 UTC](https://forum.cardano.org/t/command-not-found/39002/3 "2020-08-23T13:06:00Z")

</div>

Thanks for your response erikd

I have to run this command every time I login

source .bashrc

If I check nano .bashrc …

I see the right path added  
export PATH="~/.local/bin:$PATH"

Any suggestions, would be appreciated! Thank you!

---

<div class="post-metadata">

**Author:** ![erikd](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/erikd/32/813_2.png) [@erikd](https://forum.cardano.org/u/erikd)\
**Post date:** [23 August 2020 21:14 UTC](https://forum.cardano.org/t/command-not-found/39002/4 "2020-08-23T21:14:12Z")

</div>

What shell are you using? If you are using bash, then `.bashrc` should be automatically sourced.

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [24 August 2020 00:33 UTC](https://forum.cardano.org/t/command-not-found/39002/5 "2020-08-24T00:33:52Z")

</div>

Hi Morgan,

You should be able to bypass this by adding the following to your .bash\_profile

**test -f ~/.bashrc && source ~/.bashrc**

Your friend, FROG

---

<div class="post-metadata">

**Author:** ![MorganH](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@MorganH](https://forum.cardano.org/u/MorganH)\
**Post date:** [24 August 2020 05:06 UTC](https://forum.cardano.org/t/command-not-found/39002/6 "2020-08-24T05:06:03Z")

</div>

FROG, being awesome as always…  
I bet the Cardano community is glad to have you.  
Thank you my friend!
