Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Ubuntu and just downloaded the jmonkey game engine. Everything appears to be in a single .sh file. I am not really sure how I am supposed to run this.

share|improve this question

migrated from May 3 '11 at 3:20

This question came from our site for professional and enthusiast programmers.

Um...if it's not in your $PATH:


Or if it's not in your $PATH and it's not executable:


Or if it's in your $PATH:
share|improve this answer
Do the second one if the file is not executable. Otherwise you need to have #!/bin/bash as the first line of the file, and then do chmod +x – robbrit May 2 '11 at 22:28
+1 Very comprehensive! – Basic May 2 '11 at 22:30
I moved the file into my home directory and made it executable. It works now. – chief May 2 '11 at 22:31

Simple answer: './' or 'sh'. If you can't execute it, chmod +x

share|improve this answer

try sh -x single .sh file (assuming the +x permissions are set). Also I am assuming you probably need some jdk/jre installation.

share|improve this answer

Try this:

$ nohup ./ <arguements> &
share|improve this answer

A quick alternative to


is to use double dots as follows:

. ./

This is useful if the file does not have the execute bit set.

share|improve this answer

You must log in to answer this question.