2 shell变量

1 变量定义

1 shell变量定义格式

    字母或_开始,后面接任意长度的字母,数字,下划线!

    不区分变量类型,一切皆为字符串!

2 单引号 双引号

    单引号:强引用  单引号之间的变量不会再被替换

    双引号:弱引用  双引号之间的变量会被替换2 shell变量

3 变量裸体出现的情况2 shell变量

4 变量赋值

2 shell变量

5 变量引用2 shell变量

6 变量类型

2 shell变量

    

2 环境变量的操

2.1 export 永久保存变量

2 shell变量2 shell变量2 shell变量2 shell变量2 shell变量
2.2 临时修改环境变量

2 shell变量2 shell变量
2.3 删除环境或变量
2 shell变量

2.4 常用变

2 shell变量2 shell变量2 shell变量

2.5 常用命令新用

    export -p 可以显示:ssh-clinet 

    echo $LOGNAME $LANG

3 入门总结

2 shell变量2 shell变量

2 shell变量