-2

I have setup file *.sh, I installed Ubuntu 14. I have tried terminal mode its not working. How to run GUI mode.

Please let me know the commands and any other samples

carnendil
  • 5,421
  • 2
  • 30
  • 55

1 Answers1

0

To run a .sh file you need to open the terminal, then cd into the directory where the .sh file is located and then type this into the terminal:

chmod +x name-of-your-file.sh

then just

sh name-of-your-file.sh

The output of the command will appear on screen, if you have any other issue, let me know ! :)

ETi
  • 53
  • 1
  • 5
  • There is no need for `chmod +x` if you want to execute script by running `sh` with the script name a an argument – techraf Feb 12 '16 at 02:24
  • Using `sh` (which is the `dash` shell in Ubuntu) generically to run any shell script is not a good idea: it will fail if (for example) the script contains bash-specific features. It could even use a completely different shell such as `csh`. – steeldriver Feb 12 '16 at 04:02