I am learning bash in my Mac:
There is a simplest bash script in my Mac, it named as untitled.sh
:
#!/bin/bash
echo "hello"
But in my Terminal I want to run it, I get failed:
$ sudo ./untitled.sh
Password:
sudo: ./untitled.sh: command not found
I don't know why there is the error, everything is ok.