Linux - Environment variable

1 - About

3 - Management

3.1 - Set

3.1.1 - Shell

They are set generally with the shell. See Bash - (Environment) Variable

3.1.2 - PAM

pam permits also an admin to set environment variable: See pam-env

The file used to set the environment variable are the below one:

  • /etc/security/pam_env.conf: Default configuration file - When someone logs in, this file is read and the environment variables are set according.
  • /etc/environment: Default environment file - simple KEY=VAL pairs on separate lines
  • $HOME/.pam_environment: User specific environment file

3.2 - Get the env of a process

3.3 - Start with a clean environment


clean env


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap