shell变量
来源:互联网 发布:linux python模块目录 编辑:程序博客网 时间:2024/06/06 20:32
shell变量分为环境变量(全局变量),和局部变量;
环境变量要想永久生效,则可以放在/etc/profile,或 .bash_profile
例如:
①当前用户下生效:
vi .bash_profile
用 . .bash_profile
检验:echo $OLDBOY
②:全局下面生效
vi /etc/profile
export OLDBOY='oldboy'
环境变量要想永久生效,则可以放在/etc/profile,或 .bash_profile
例如:
①当前用户下生效:
vi .bash_profile
用 . .bash_profile
检验:echo $OLDBOY
②:全局下面生效
vi /etc/profile
export OLDBOY='oldboy'
0 0
- Shell变量
- Shell变量
- shell 变量
- Shell 变量
- Shell变量
- shell变量
- shell变量
- shell 变量
- Shell ”变量“
- Shell变量
- SHELL 变量
- shell变量
- shell变量 ***
- shell变量
- shell 变量
- 【shell】变量
- shell 变量
- shell变量
- 运筹学图论在编程中的应用
- lua学习笔记---值,类型
- 有理数四则运算
- 444444444444444444
- 用代码制作红玫瑰
- shell变量
- 44444444444444444
- HTML的footer置于页面最底部的方法
- 优秀js
- 黑马程序员——反射
- php下memcache的应用(二)——linux下memcached服务器的安装
- lua学习笔记---作用域
- 高效能七个习惯
- lua学习笔记---运算符