How do I set environment variables in bash?

Minh Tung

New member
How do I set environment variables in bash?
Answer
3.2 How to Set an Environment Variable Permanently in Bash Shell
  1. Use ” printenv ” (or ” env “) to list all the environment variables.
  2. Use ” setenv varname value ” and ” unsetenv varname ” to set and unset an environment variable.
 

Tìm kiếm

Back
Top