Hello. If you go to the site below, I organized /etc/profile as follows http://www.troubleshooters.com/linux/prepostpath.htm
All users except root /etc/profile
What I'm curious about is Is it correct that /etc/profile is applied to all users except root?
Or does it apply to all users including root?
I want to know exactly.
linux
/etc/profile is a system-wide setup file that reads unconditionally at boot time.
Of course, I will read it as a setup file with /etc/bashrc, but /etc/profile is a more common file.
In other words, we will read it including all the root.
For verification, you can check with env after root su.
© 2024 OneMinuteCode. All rights reserved.