How To Run .sh File In Ubuntu

We can run .sh file from both terminal and GUI mode.To run .sh file from terminal, first  open terminal and type
cd path_of_directory_where_sh_file_is_located.
Now type sudo sh name_of_sh_file
Run .sh file from GUI
Right click on .sh file.Select Properties,

In Permissions tab check Allow Executing file as program
Now you can open the .sh file by double clicking.

No comments:

Post a Comment

Post Your valuable comments here ..........