Environment variable settings in Debian

Source: Internet
Author: User
Environment variable settings in Debian-Debian information for the Linux release. For more information, see the following section. Linux environment variables are classified into system-level and user-level variables. System level affects all system users, while user level affects only a single user. This hierarchical setting is a good system architecture and is not sure whether a similar mechanism exists in windows.

Env displays system-level environment variables

Set display user-level environment variables

Set variable name, set user-level environment variable

Set PATH =/usr/local/jre-1.5.6/bin: $ PATH

Unset variable name to clear user-level environment variables

Readonly variable name, set the user-level environment variable to read-only

The preceding setting method only applies to specific sessions. If you exit or open a new terminel, the user-level environment variable will not be valid.

In debian, you can modify the. bashrc in the user's HOME directory to ensure permanent validity.

Root users will have. bashrc and. profile, and I think the effect should be the same.

Root can also modify/etc/profile to modify system-level environment variables.

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.