Skip to content
Advertisement

Tryinf to run existing scripts in shell gives “command not found”

I am trying to install Anaconda with a sh script. I am using Ubuntu 18.

Here is my Downloads folder. We can clearly see the script

JavaScript

But running it gives a “command not found”.

JavaScript

What could be the issue?

Advertisement

Answer

You can see from the permissions -rw-rw-r-- that it is not executable. If you do:

JavaScript

then you should see the permissions become -rwxrwxr-x. You can now do:

JavaScript

and it should work.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement