Set global path variable under UBUNTU

Source: Internet
Author: User

A global path that can be used by all users:

You can modify the configuration file by:

/ETC/BASHRC and/etc/profile when configured,

The global path;

For example: Vi/etc/profile adds a line after the last:

Path=the_set_globle_env_path: $PATH, and then line break:

Export PATH

Also need to be configured in Etc/profile

Path=the_set_globle_env_path: $PATH, and then line break:

Export PATH

If you make it effective immediately:

Source/etc/profile

Note When setting environment variables under normal users, you can add source/etc/profile under ~/.BASHRC without having to source each time.

Set global path variable under UBUNTU

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.