running bash scripts in mac’s terminal

It works like running a .bat file on Windows, but there are a couple of things to keep in mind:

The file has to be executable. Let’s say it’s called Here’s how you’d make it executable:

chmod +x

Then, if you want to run it from the same directory that you’re in, you have to specify the current directory, like this:


Nice explanation from notjustjay in this macrumors forum thread.

This entry was posted in tech notes and tools and tagged , . Bookmark the permalink.