Open an application on a Mac Terminal

Source: Internet
Author: User

I 've been using MAC for a long time, but I don't know a lot about it. I find that I am not good at discovering new things, and I do not like to use new things.

A Senior sister in the lab downstairs also bought a Mac pro, but she received a 20 thousand scholarship. The elder sister is not very clear about the operations on the command line and will often ask me. Then there will always be issues that I cannot solve each time. I have never encountered some problems, so I had to use Baidu. People thought I was using MAC and thought I would. At this time, I felt sweaty.

################## The launchpad icon is not in the dock ################# ##

This is simple, but I never knew where the launchpad was.

Launchpad is in the application. Drag it to the dock.

################# Open an application, file, folder, or browser from a terminal ...... ##################

Simply use the open command. This is too simple.

 

1. Open/path/application. app

2. Open/path/directory

3. Open/path/File

4. Open-A/application/textedit. app "/path/file.txt" # open the file with the specified application

5. Open-e "/path/file.txt" # The-E Option indicates opening with textedit.

6. Open http://www.apple.com/# Open the URL with the default browser

7. Open "file: // localhost/volumes/Macintosh Hd/foo.txt"

8. Open "file: // localhost/volumes/Macintosh Hd/applications /"

################## Reference ##############

Http://blog.csdn.net/yang3wei/article/details/7478171

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

Http://blog.sina.com.cn/s/blog_99813ce40101bfo3.html

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.