网站介绍:1. 综述Linux下的环境变量分为两种,系统变量和用户变量。1.1 系统级变量以Ubuntu系统为例,我们使用 vim 打开文件 /etc/environment,内容如下:PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"可以看到该文件下保存了基本的PATH 环境变量。另外一个保存系统级环境变量的文件是:/etc/profile,内_"if [ \"${bash-}\" ] && [ \"$bash\" != \"/bin/sh\" ]; then # the file bash.bashrc a"
- 链接地址:https://blog.csdn.net/nanmudage/article/details/117884692
- 链接标题:Linux 环境变量_"if [ \"${bash-}\" ] && [ \"$bash\" != \"/bin/sh\"-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5950
- 网站标签:"if [ \"${bash-}\" ] && [ \"$bash\" != \"/bin/sh\" ]; then # the file bash.bashrc a"