The internal variables of shell scripting learning

Source: Internet
Author: User

One$BASH

    The path of the Bash 's binary program file

  

Two$BASH_ENV

This environment variable will point to a bash startup file that will be read when a script is called.

Three$BASH_SUBSHELL

This variable is used to indicate the level of the child shell

四, $BASH_VERSINFO[n]

This is an array of 6 elements that contains the version information of the bash that was installed

# Bash_versinfo[0] = 3                      # major version number.    # Bash_versinfo[1] = xx                     # minor version number.    # bash_versinfo[2] =                     # number of patches.    # Bash_versinfo[3] = 1                      # compiled version.    # Bash_versinfo[4] = release                # distribution status. # Bash_versinfo[5] = I386-redhat-linux-gnu  # structural system
Five$BASH_VERSION
    安装在系统上的Bash版本号
    

Six$DIRSTACK

The top-most value in the directory stack.

Seven$EDITOR

The default editor called by the script, usually vi or emacs.

Eight$EUID

    "Valid" User ID

Nine$FUNCNAME

The name of the current function

    

    

Ten$GLOBIGNORE

A list of pattern matches for a file name, and if the file matched in the wildcard (globbing) contains a file in the list, the file will be removed from the matching result.

$GROUPS
This is a list of group IDs (arrays) for the current user, as is the content recorded in the /etc/passwd file.
Eleven$HOME
User's home directory
   
Twelve $HOSTNAME 
       
    

13,$HOSTTYPE

Host type

    

14,$IFS

Domain Segmentation

    

    

 
    


The internal variables of shell scripting learning

Related Article

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.