Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Launching apps from terminal (like linux?)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="systix" data-source="post: 807292" data-attributes="member: 77241"><p>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.</p><p></p><p>Eg if i wanted to edit a document on linux I would type </p><p>[code]gedit ~/files/example.txt[/code]</p><p></p><p>In OS X I dont seem to be able to do this, is there a way?</p><p>I know I can add an alias entry for each program to just run it like below:</p><p>[code]alias tx 'open /Applications/TextEdit.app/'[/code] but what happens if i want to open a file with this application as I know the command is different (using the -a option).</p><p></p><p>Is there any way to get OS X to work like linux in this way?</p><p></p><p>thanks.</p></blockquote><p></p>
[QUOTE="systix, post: 807292, member: 77241"] 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 [code]gedit ~/files/example.txt[/code] 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: [code]alias tx 'open /Applications/TextEdit.app/'[/code] 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? thanks. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Launching apps from terminal (like linux?)
Top