shell变量综述本页总览[toc] shell变量综述 1.shell变量分类 环境变量(全局变量) 可以在当前shell及子shell中使用 本地变量(局部变量) 只能在子shell中使用 2.shell查看变量