How do I set environment variables in Linux?

Duyên Trương

New member
How do I set environment variables in Linux?
Answer
In most Linux distributions when you start a new session, environment variables are read from the following files:
  1. /etc/environment – Use this file to set up system-wide environment variables. …
  2. /etc/profile – Variables set in this file are loaded whenever a bash login shell is entered.
 

Tìm kiếm

Back
Top