Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm right now busy with moving the first steps into Linux, i'm using a bash shell within a mac osx

I see in all tutorials that in order to launch an application from the bash its necessary to cd to its directory and simply type the name of the app. This is exatly what i'm doing and it does not work (i have on my desktop a 'Eclipse' folder with the launcher icon in it):

cd Desktop
cd Eclipse

Why will this not work? I read everywhere that typing the name of the app its enough

share|improve this question

migrated from stackoverflow.com Jul 4 '12 at 19:52

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

What does not working mean? Crash? Error message? Daemons flying out of your nose? –  H2CO3 Jul 4 '12 at 18:58
Oh yeah sorry, i get a command not found: -bash: Eclipse.app: command not found –  JBoy Jul 4 '12 at 19:00
OK see my answer. –  H2CO3 Jul 4 '12 at 19:00

3 Answers 3

Eclipse .app is a directory. Use this instead:

cd Desktop/Eclipse/Eclipse.app
share|improve this answer

You're trying to launch an OS X app.

In OS X only, you use the open command for this:

cd Desktop/Eclipse
open Eclipse.app

open is much more versatile than this, and will also open files using the associated program.

To learn more about open, type this in the Terminal:

man open

As already mentioned, open is OS X specific.

share|improve this answer
Very useful, thank you pb2q, –  JBoy Jul 4 '12 at 19:04

In Mac you should use open. It's not only help you open the application but it also open specific file extension with the default application. Like open <pdf> will activate preview.

For more information man open

share|improve this answer

Your Answer


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.