Linux Gvim Shell variables

Source: Internet
Author: User
#!/bin/bash

Name="Matto" #变量名和等号之间不能有空格 #name="Blog4matto" #重定义name变量 #readonly name #设置name为只读变量 # unset name #删除变量, you cannot delete a read-only variable #${name} #使用变量, and the brackets are enlarged to identify the variable boundary #

Variable type

1. Local variables: defined in script or command, valid only in the current shell instance

2. Environment variables: All programs, including shell-initiated programs can access environment variables, some programs require environment variables to ensure their normal operation, when necessary, shell scripts can also define environment variables

3.shell variable: A special variable set by the shell program, which consists of a subset of environment variables and a subset of local variables that guarantee the shell's normal operation

Linux Gvim Shell variables

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.