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

Your email address will not be published. Required fields are marked *