Languages
[Edit]
EN

Bash - add permission to execute all *.sh files located in some directory

10 points
Created by:
martineau
1350

In this article we would like to present simple way how to add permission to execute all *.sh files located in some directory using Bash.

Quick solution:

 

Note: above command will find all *.sh scripts (even in subdirectories) and will add them execution permissions (u+x - user add execution permissions)

 

Practical example

Edit

In this section we can see command running example on current working directory.

 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join