Home » Posts » How To » How to run .sh files in Linux?

How to run .sh files in Linux?

Even though I have posted this in fedora category, it works for all linux distros. To execute/run any .sh files.




run the followig comands:


Grow your YouTube channel quicker with TubeBuddy.





  • first give execute permission to script file : chmod +x /path/to/scriptfile.sh
  • and to run the script: /path/to/scriptfile.sh
  • if scriptfile.sh is in current directory then you do it with: ./scriptfile.sh

as ./ refers to current directory


Don't forget to subscribe!.






Get $100 Credit on DigitalOcean for Cloud Hosting. Claim Now!

after doing this it must be running, if still not then


Grow your YouTube channel quicker with TubeBuddy. Join Today!
  • browse to the script file with a file manager
  • right-click to properties
  • open permissions
  • make sure: Allow executing file as the program is checked on.
Before you go, let's stay connected
Photo of author
About the Author
Lakshman Basnet
Digital Media Marketer from Nepal currently based in Adelaide, South Australia who apart from playing with his cat - Eleven, also enjoys developing web content, publishing blogs and YouTube videos in his free time.

Leave a comment