I
I
Ilya Chernikov2015-12-18 18:32:57
linux
Ilya Chernikov, 2015-12-18 18:32:57

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

1 answer(s)
S
Sergey Karbivnichy, 2015-12-18
@Tuerer

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 question

Ask a Question

731 491 924 answers to any question