修改sh文件的首部
2.shell中脚本中变量的定义方法 (1)环境级别 export a=1 在环境关闭后变量失效 (2) 用户级别 vim ~/.bash_profile export a=1
(3)系统级别 vim /etc/profile export a=2 vim /etc/profile,d/westos.sh export b=3