Linux env Command
What is Linux env Command?
In this tutorial we learn how to use env command in Linux. env command is env - run a program in a modified environment.
Set each NAME to VALUE in the environment and run COMMAND. remove variable from the environment.
env Syntax
env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]env Examples
env Command Manual / Help
We can use man and info command to see the manual page of env command. env command also have --help option to show list of options.
To open man page for env command we can use command below. To exit man or info page you can press q.
man envTo open info page for env command we can use command below.
info envTo open help page from env command we can run command below.
env --helpLinux env Command Source Code
You can find env command source code from the folowing repositories:
Related Linux Commands
You can read tutorials of related Linux commands below:
Summary
In this tutorial we learn how to use env in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.