WikongGuan

关注

/etc/environment 与 /etc/profile区别

WikongGuan

关注

阅读 92

2023-03-02


关键点:

/etc/environment是设置整个系统的环境,而/etc/profile是设置所有用户的环境,前者与登录用户无关,后者与登录用户有关。

跟环境变量相关的参数:

/etc/profile ->/etc/enviroment -->$HOME/.profile -->$HOME/.env


相关推荐

青青子衿谈育儿

~/.bashrc与/etc/profile的区别

青青子衿谈育儿 76 0 0

才德的女子

/etc/profile与~/.bash_profile的区别

才德的女子 22 0 0

君之言之

Linux环境变量设置/etc/profile、/etc/bashrc、~/.profile、~/.bashrc区别

君之言之 70 0 0

墨春

config /etc/profile

墨春 58 0 0

程序员伟杰

/etc/profile , /etc/profile.d ,~/.bashrc, ~/.bash_file

程序员伟杰 70 0 0

北邮郭大宝

/etc/profile文件简单介绍

北邮郭大宝 36 0 0

我是芄兰

/etc/profile和/root/.bash_profile有什么区别

我是芄兰 35 0 0

MaxWen

Dockerfile ENV /etc/profile 中没有

MaxWen 74 0 0

夏沐沐

进入vim /etc/profile如何退出

夏沐沐 72 0 0

桑二小姐

Linux环境变量设置 /etc/profile 和 ~/.bashrc 区别

桑二小姐 90 0 0

精彩评论(0)

0 0 举报