# "command not found" when executing the script to deploy a blog via rsync

**URL:** <https://discourse.gohugo.io/t/command-not-found-when-executing-the-script-to-deploy-a-blog-via-rsync/36286>\
**Category:** support\
**Created:** [December 31, 2021, 2:08am UTC](https://discourse.gohugo.io/t/command-not-found-when-executing-the-script-to-deploy-a-blog-via-rsync/36286 "2021-12-31T02:08:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![loox](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/loox/32/15899_2.png) [@loox](https://discourse.gohugo.io/u/loox)\
**Post date:** [December 31, 2021, 2:08am UTC](https://discourse.gohugo.io/t/command-not-found-when-executing-the-script-to-deploy-a-blog-via-rsync/36286/1 "2021-12-31T02:08:55Z")

</div>

Hello,

I followed the instructions to remotely [deploy my website via rsync](https://gohugo.io/hosting-and-deployment/deployment-with-rsync/).

But I get **command not found** error at line _hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DIR}_.

The unfound command is hugo. Can’t figure out why, since I could effectively build the site with hugo. The file is at the right place. Which syntax should I use?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![cshoredaniel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/cshoredaniel/32/19684_2.png) [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Post date:** [January 1, 2022, 12:36am UTC](https://discourse.gohugo.io/t/command-not-found-when-executing-the-script-to-deploy-a-blog-via-rsync/36286/2 "2022-01-01T00:36:57Z")

</div>

Can you post the actual error message? And the operating system you are using? And your PATH (the environment variable PATH, that is)?

You know basic things that we don’t know about your system that are important.

Also, are you sure it is `hugo` that is not found and not `rsync`? Is rsync installed?

Finally, you say you could build using `hugo`. Did you build immediately before issuing the above command in the same directory (and what command line did you use?) or have you done some other ‘magic’ in the meantime?

---

<div class="post-metadata">

**Author:** ![loox](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/loox/32/15899_2.png) [@loox](https://discourse.gohugo.io/u/loox)\
**Post date:** [January 1, 2022, 1:43am UTC](https://discourse.gohugo.io/t/command-not-found-when-executing-the-script-to-deploy-a-blog-via-rsync/36286/3 "2022-01-01T01:43:25Z")

</div>

Hello,  
Thanks for the prompt answer!

By looking at the issue, I spotted a stupid typo in my bash\_profile and solved everything.

I should have seen it earlier and apologize for having bothered you without reason.

Thanks again for your support!
