Thank you for purchasing through links and ads on this site.
OWC / MacSales.com...
diglloyd Deal Finder...
Buy other stuff at Amazon.com...
Durable and fast, up to 1800MB/s

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.

Cycling
B&H Deal ZoneDeals by Brand/Category/Savings
Deals expire in 11 hours unless noted. Certain deals may last longer.
$1998 SAVE $400 = 16.0% Sony a7R II Mirrorless in Cameras: Mirrorless
$368 SAVE $80 = 17.0% Sony DSC-RX100 in Cameras: Point and Shoot
$1349 SAVE $150 = 10.0% ZEISS 18mm f/2.8 Batis in Lenses: Mirrorless

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__