Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a .sh script (wget-20121105144134.sh) which I downloaded from the web. The script contains codes to download huge climate data files.

Can you tell me how to run this file on Linux? It is easy for me to run a file which exist in my directory. The file above has been downloaded from the web and how can I add to my current directory or run directly on terminal?

Regards, Elv.

share|improve this question
add comment

2 Answers

You need to make it executable. you can use chmod +x filename

or you can right click and select the make executable check box.

Then you can run it by clicking it or even in the terminal with sh filename.sh or just ./filename.sh

share|improve this answer
add comment

You can probably just right click the file, select Properties > Rights and tick the box called something like "Allow running this file as an executable". After that, you just double click it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.