Linux System Environment variables

Source: Internet
Author: User

Linux which we often use, but when used to not remember, here to make a memo.

Common Variables for Linux:

    1. PATH determines to which directories the shell will look for commands or programs
    2. Home Current User Home directory
    3. Histsize Number of historical records
    4. LOGNAME The current user's login name
    5. HOSTNAME refers to the name of the host
    6. Shell Current User shell type
    7. Languge language-related environment variables, multiple languages can modify this environment variable
    8. Mail storage directory for the current user of mail
    9. PS1 basic prompt, for root user Yes #, for normal user is $

Linux commands:

    1. Reset shows all locally defined shell variables
    2. Env shows all the environment variables
    3. unset Clearing Environment variables

As an example:

$ Export $TEST =test

$ set | grep TEST

Test=Test

$ unset $TEST

Linux System 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.