系统变量为全局变量都可以用,用export定义,如:export  ip1=192.168.1.5

自定义变量为当前shell或者文件生效,如:ip1=192.168.1.8

posted on 2020-03-08 18:03  大话人生  阅读(232)  评论(0)    收藏  举报