Shell-Programming For Current Directory chmod +x ./fileName.sh then ./fileName.sh You have to use the whole path instead of . if you are executing it outside of the directory.