栏目:shell知识库 作者:admin 日期:2018-10-22 评论:0 点击: 552 次
1 2 3 4 5 6 7 8 9 10 |
[root@swiftlet ~]# name=tom --shell变量设定 [root@swiftlet ~]# echo $name tom [root@swiftlet ~]# env| grep name --设置完shell变量,但当前用户变量并没有 [root@swiftlet ~]# set| grep name –-shell变量里有 name=tom [root@swiftlet ~]# exprot| grep name –-导出变量里面没有 [root@swiftlet ~]# export name --用export 导出环境变量 [root@swiftlet ~]# env| grep name –用户变量存在 name=tom |
------====== 本站公告 ======------
金丝燕网,一个严谨的网站!