MAC OSX Sets the PATH environment variable

Source: Internet
Author: User

1.export path= $PATH:/xxx/bin

This method is a temporary change of environment variables, after closing the terminal path or the previous unmodified


2.sudo vim/etc/paths

This method changes the global environment variables. Each line represents a path, add your path to the last line, you can drag the folder directly to the terminal, note that the last space does not appear, otherwise it will be invalidated. Then restart the terminal, Echo $PATH can see the path has been added

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

MAC OSX Sets the PATH environment variable

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.