Linux Env

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)


The env command is a shell command used to display and manipulate environment variables. It is used to either list down environment variables or run a program in a modified environment.

With the help of env, commands can be added or removed, you can assign new values to the existing variables.

env without options

When env command runs without option, it prints variables of current environment.




Look at the above snapshot, it displays current environment variables with their values.