Answer the question
In order to leave comments, you need to log in
Bash script of two lines does not want to run, what's wrong?
In general, the script is
#!/bin/bash
echo "Hello World"
I do chmod +x - it says that there is no such file or directory, I did it manually,
I run ./my.sh and writes the same thing.
Bash is located in /bin/bash. what's the problem?
Answer the question
In order to leave comments, you need to log in
I tried it myself, everything works. Try without chmod +x to execute the command:
and see what happens.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question