You can mark the file as executable: chmod +x filename.sh You can then execute it like this: ./filename.sh