Set the environment variable command in Linux -- export

Source: Internet
Author: User

In Linux, set the environment variable command -- export Syntax: export [-p] [variable name] = [variable setting value] parameter description: [-p] lists all environment variables that the shell assigns to the program. Command: displays or sets environment variables. Example: export PATH =/mnt/updata/mips-4.3/bin: $ PATH # This statement sets the system variable, followed ": $ PATH "is added after the system variable. Export RUA_DIR =/mnt/updata/mrua_SMP8654F_3_7_0_dev.mips/MRUA_src # is used to set user variables, which is equivalent to setting system variables in windows. Instructions for use: When executing a program in shell, shell provides a set of environment variables. Export allows you to add, modify, or delete environment variables for subsequent programs. The effect of export is only true for this login operation.

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.