Mac opens software with commands

Source: Internet
Author: User

Use commands in Mac to open software

The various shortcuts in the Mac are convenient, how to use the command to open a key?
Here is an example of opening a markdown file with a MoU.

    • You can open a file in 1.mac using the Open command
opena.txt // 使用默认方式打开a.txtopen -aa.txt // 选择使用何种方式打开 a.txt

If the MOU is opened, the absolute path of the MOU needs to be put up, so

open -aa.txt // 使用Mou 打开 a.txt

Each time this opens, a bit too much trouble, can you set individual name, of course, can ~

//切换到home目录vim .bashrc//添加这样一行,设置一个别名alias mou="open -a  /Applications/Mou.app"source ~/.bash_profile

That's it, it's all done.

Mac opens software with commands

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.