I am following a tutorial for Ruby on Rails3. The author types the following which launches sqlite Database Browser and opens the specified database.
open db/development.sqlite3
What can I do to configure my system to do the same? I am on Mac OSX 10.6
Thanks in advance 🙂
On Mac OS X, the command
open FILEwill perform the same action as double-clicking the file in Finder. If it is not working, it’s because the file type needs to be associated with the application:Afterward,
openwill launch that app with that file.If you don’t want to change the type, you can also tell the
opencommand which app to use:Type
man opento see the manual page which will explain in more detail how it works.