As an Amazon Associate I earn from qualifying purchases @AMAZON

Designed for the most demanding needs of photographers and videographers.
Connect and charge all of your devices through a single Thunderbolt or USB-C port.

How to Make a Shell Script Executable

2013-01-08 • SEND FEEDBACK
Related: command line, How-To, software, Terminal.app

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.

View all handpicked deals...

Nikon Z7 II Mirrorless Camera
$2997 $2997
SAVE $click

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