How Do I Print an Environment Variable in Linux Terminal?

How Do I Print an Environment Variable in Linux Terminal?
Contents

How do I see environment variables in terminal?

To list the environment variables in terminal with CTRL + ALT + T you can use env command.

How do I see environment variables in Linux?

What are Environment Variables in Linux?

  1. env – The command lists all of the environment variables in the shell.
  2. printenv – The command prints all (if no environment variable is specified) of environment variables and definitions of the current environment.
  3. set – The command assigns or defines an environment variable.

29 февр. 2016 г.

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.