Mac Forums

Mac Forums (
-   OS X - Operating System (
-   -   Launching apps from terminal (like linux?) (

systix 02-19-2009 03:25 PM

Launching apps from terminal (like linux?)
One of the things I miss in OS X compared to linux (ubuntu) is the ability to easily launch applications from the terminal, with or with out parameters to open files in that application.

Eg if i wanted to edit a document on linux I would type

gedit ~/files/example.txt
In OS X I dont seem to be able to do this, is there a way?
I know I can add an alias entry for each program to just run it like below:

alias tx 'open /Applications/'
but what happens if i want to open a file with this application as I know the command is different (using the -a option).

Is there any way to get OS X to work like linux in this way?


MacsWork 02-19-2009 04:06 PM

open /Applications/ ~/File.txt

Assuming there is File.txt in the root of your home directory

technologist 02-20-2009 10:57 AM


Originally Posted by MacsWork (Post 807310)
open /Applications/ ~/File.txt

or just


open ~/File.txt
(to open it with whatever the default application is for that file)

All times are GMT -4. The time now is 05:52 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.