The Fastoe Blog

News and technical documents for all things Fastoe.

how to run a .sh file in macOS

Follow these steps to run a script files:

  1. Right-click on the file, select Open.
  2. The file are now extracted to the current folder.
  3. Click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal.
  4. Switch to the file directory. Type cd and a space, type the path to the folder in which the is located, and press Enter. For example, if the file is in the "Downloads" directory, you would enter cd ~/Downloads into Terminal.
  5. Type in sh and press enter.