本地变量和环境变量 nux的变量类型有两种。本地变量和环境变量(全局变量)你可以使用的linux命令有,export和declare用法:export 变量名=值 例如:export total=50declare -x 变量名=值 例如:declare -x total=19使用set命令可以查看你系统当前的所有的变量使用env命令可以查看你系统当前的所有环境变量 posted on 2016-04-28 00:21 阿木木a 阅读( ...) 评论( ...) 编辑 收藏 转载于:https://www.cnblogs.com/amma/p/5441056.html