How Mac OS opens app apps under a terminal

Source: Internet
Author: User

When a user configures a file on a Mac OS platform and sometimes needs to configure some files in the Mac terminal, it needs to use the command to open the app app in the terminal, but there are a lot of users who don't use terminal commands, which provides a tutorial on opening app apps under a terminal.

Open the terminal to enter Open/applications/xxx directly (the name of the application). App like Open ITunes input: Open/applications/itunes.app (note Open after a space and then enter a slash/)

MAC command to open an application in a terminal

From:http://macosx.com/forums/howto-faqs/29520-how-launch-application-terminal.html

The command is simply open (which can also being used for opening directories). The most basic example of launching an application:

Open/path/to/some.app

More complex possibilities also exist:

Open "/volumes/macintosh hd/foo.txt"

Opens the document in the ' default application for it type (as determined by launchservices).

open/applications/

Opens that directory in the Finder.

Open-a/applications/textedit.app "/volumes/macintosh hd/foo.txt"

Opens the document in the application specified (in this case, TextEdit).

Open-e "/volumes/macintosh hd/foo.txt"

Opens the document in TextEdit (the-e option specifies TextEdit).

Open http://www.apple.com/

Opens the URL in the default browser (Lynx, naturally *wink*)

Open "File://localhost/Volumes/Macintosh hd/foo.txt"

Opens the document in the ' default application for it type (as determined by launchservices).

Open "File://localhost/Volumes/Macintosh hd/applications/"

Opens that directory in the Finder.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.