Double clicking an
sh file won't execute it because
sh files are really just text files containing terminal commands. It's always kind of annoyed me that certain files aren't able to be executed by double clicking them, but that's just the way Linux works. If you want to run the
sh file, you need to use the terminal.
Press ctrl + alt + T to open a terminal. Now there are two ways to execute an
sh script from the terminal. One is done by
cding to the parent directory and then running it from there, while the other way just points directly to the file. I'll show both of them below.
For these examples I'm using my own user name and path I made up. You have to specify the actual path to your
By just putting in the full path:
Either way will work fine.
Now, if you really want to be able to double click executable scripts from your file browser to run them, you can try this:
Open Nautilus (the file browser) and open the
File... menu. From here, select
Preferences and go to the
Behavior tab. There should be a dropdown menu option named something like
Executable Text Files:. In the dropdown, select the
Run ... option and apply these settings.
Source: Not executing programs (*.sh ) with double click in 13.04