Create environment variables in RedHat

Source: Internet
Author: User

If you only want to use an environment variable in this login, you can directly enter the following content in the terminal:

Export cvsroot =: ext: [email protected]:/CVS/bv_sip
Export cvs_rsh = SSH

After executing the command, use the Export command to investigate and find that the environment variables cvsroot and cvs_rhs already exist.

 

For environment variables configured for a single user, you only need to find the file. bash_profile in the home directory of the corresponding user.

(Note that this file is a hidden file. You can see it by running the LS-Al command)

Vi. bash_profile

Cvsroot =: ext: [email protected]:/CVS/bv_sip
Export cvsroot

Cvs_rsh = SSH
Export cvs_rhs

Log out after editing and run the Export command to check whether the environment variables cvsroot and cvs_rhs are available.

 

If it is an environment variable for all users, you need to go to the/etc directory to edit the profile file

VI Profile

Cvsroot =: ext: [email protected]:/CVS/bv_sip
Export cvsroot

Cvs_rsh = SSH
Export cvs_rhs

Run after editing

Source/etc/profile

Run the Export command to check whether the environment variables cvsroot and cvs_rhs are available.

Create environment variables in RedHat

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.