How to get all the environment variables for a user in Linux

We can use 'printenv' command to get all the environment variables for a user in Linux.

#printenv

This will print environment variables and their current values.

That's all…

Leave a Reply