Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 857.6k
  • 202
  • 1.8k
  • 2.3k
Source Link
Jay
  • 311
  • 1
  • 3
  • 20

From where does printenv command read environment variables which I have not defined?

The printenv command lists a number of environment variables most of which I have not defined. From where does it read these values? Where are the environment variables stored in Linux? strace printenv gave an indication to me that it opens /usr/lib/locale/locale-archive but I did not get a clear idea.