How do i display bash environment variables?
-
Environment variables are defined by the shell, some are specific to your login account.
For example, your home directory should be unique to your login account.
To print the environment variable for your home directory do the following:
$ printenv HOME /home/trainer
To print all environment variables.
$ printenv
© Lightnetics 2024