Thank you for purchasing through links and ads on this site.
OWC / MacSales.com...
diglloyd Deal Finder...
Buy other stuff at Amazon.com...
Rigorously lab tested and OWC certified.
OWC Garage Sale
Over 350 items ready to move!
Plus Largest Selection ever of Used, Refurb, and New Macs
ends in 31 hours

How to Make a Shell Script Executable

Last updated 2013-01-08 - Send Feedback
Related: how-to, How To, Software

A shell script is just a text file.

It might or might not have a filename extension like “.sh” or “.bash”.

To make it executable at the command line, its file flags must be changed to allow execution:

# Make the script 'verifyVolumes.sh' executable
diglloyd:MPG lloyd$ sudo chmod +x verifyVolumes.sh

Use this cautiously, do not apply willy-nilly, and only to trusted scripts.

SSD upgrade that takes full advantage of APFS

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2008-2017 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__