# Issue to run sudo find mattermost/ mattermost/client/

**URL:** <https://forum.mattermost.com/t/issue-to-run-sudo-find-mattermost-mattermost-client/12440>\
**Category:** Troubleshooting\
**Created:** [October 29, 2021, 3:46am UTC](https://forum.mattermost.com/t/issue-to-run-sudo-find-mattermost-mattermost-client/12440 "2021-10-29T03:46:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevED](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DevED](https://forum.mattermost.com/u/DevED)\
**Post date:** [October 29, 2021, 3:46am UTC](https://forum.mattermost.com/t/issue-to-run-sudo-find-mattermost-mattermost-client/12440/1 "2021-10-29T03:46:39Z")

</div>

Upgrading mattermost trying to run this command:

root@EDMM:/opt/mattermost# sudo find mattermost/ mattermost/client/ -mindepth 1 -maxdepth 1 ! ( -type d ( -path mattermost/client -o -path mattermost/client/plugins -o -path mattermost/config -o -path mattermost/logs -o -path mattermost/plugins -o -path mattermost/data ) -prune ) | sort

I’ve got

find: mattermost : No such file or directory  
find: mattermost/client/ : No such file or directory

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/b/bf2bef25071d4a06b97091f3d364519272fcd0ad.png)

What is wrong there?

---

<div class="post-metadata">

**Author:** ![Gavin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/gavin/32/5107_2.png) [@Gavin](https://forum.mattermost.com/u/Gavin)\
**Post date:** [October 29, 2021, 7:02am UTC](https://forum.mattermost.com/t/issue-to-run-sudo-find-mattermost-mattermost-client/12440/2 "2021-10-29T07:02:55Z")

</div>

You are in the directory already.

---

<div class="post-metadata">

**Author:** ![DevED](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DevED](https://forum.mattermost.com/u/DevED)\
**Post date:** [October 29, 2021, 5:56pm UTC](https://forum.mattermost.com/t/issue-to-run-sudo-find-mattermost-mattermost-client/12440/3 "2021-10-29T17:56:17Z")

</div>

Hi Gavin, perhaps I wasn’t clear enough.  
I’m following this instruction:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/1/1ca04260b1af658797b43342be5995078836e86c.png)  
And was expecting that it will delete the contents of the folder but faced described error. Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![jprusch](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/jprusch/32/2563_2.png) [@jprusch](https://forum.mattermost.com/u/jprusch)\
**Post date:** [November 3, 2021, 4:10pm UTC](https://forum.mattermost.com/t/issue-to-run-sudo-find-mattermost-mattermost-client/12440/4 "2021-11-03T16:10:32Z")

</div>

Switch to /opt and not /opt/mattermost

---

<div class="post-metadata">

**Author:** ![DevED](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DevED](https://forum.mattermost.com/u/DevED)\
**Post date:** [November 4, 2021, 6:03pm UTC](https://forum.mattermost.com/t/issue-to-run-sudo-find-mattermost-mattermost-client/12440/5 "2021-11-04T18:03:09Z")

</div>

Thanks a lot @jprusch. Clearly I’ve missed that {install-folder} is /opt not /opt/mattermost  
My respect.
