Omar

Nofl

IT Consultant


Welcome to my blog.

Here you’ll find some of my website & my latest news, tutorials and general information.

How to run a shell script in Ubuntu

August 24, 2013Omar Nofl0 Comments

The easiest way for me is just to press the ctrl , alt, and T keys to open a terminal.

Navigate to the folder that contains your script file.

Then all you have to do is type ./yourscriptname and the script will be run in the terminal, or to run the script with root priviledges, type: sudo ./yourscriptname
Before you can run the script file, you will need to make it executable buy Right clicking on it and then Selecting Properties, then click on Permissions, then Click Allow executing file as a program to set it’s executable bit before it will be executed (run) in the terminal.
or from the terminal type: chmod u+x yourscriptname


Leave a Reply

Time limit is exhausted. Please reload the CAPTCHA.