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:

  • 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

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

  • browse to the script file with file manager
  • right click to properties
  • open permissions
  • make sure: Allow executing file as program is checked on.





Posts you might like


Red Hat Enterpise Linux Blog Posts!

I am keeping note of some problems I solved, or how to notes about installation and more on Red Hat Enterprise Linux. This blog post will get you where you... read more

Best screencaster/ recorder for Linux?

Kazam is the best and most used screencaster/screenrecorder that can capture screenshots, videos and have a lot of features. In this post, you will know hor to setup Kazam screencaster... read more

Installing Sublime text editor in Fedora 23

Install sublime text editor in Fedora 23 read more

How to install Android Studio on Ubuntu?

install Android Studio on Ubuntu read more