2012-12-09

Ubuntu - How to execute an .sh file

(1) Make sure it is allowed to execute. Right click on it and set, on the "Permissions" tab, the checkbox that reads "Execute... allow executing file as a program". Alternatively, use the following command line:

chmod +x filename.sh


(2) Execute it by either double clicking on it, or using the command line. Below is the command.

sudo ./filename.sh

No comments:

Post a Comment