Home>Article>Operation and Maintenance> What is env in linux
In Linux, env refers to "environment variable", which is a tool used to view or set the current user environment variable information. The syntax is "env [option] [-] [name=value] [command [Parameters]]"; if all subsequent parameters are omitted and the "env" statement is executed directly, all environment variables in the system and their assignments can be listed.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
env is the environment variable
env is a tool, or a Linux command.
In Linux, env is used to view or set the current user environment variable information
Linux env command syntax
env [选项] [-] [名称=值] [命令[参数]]
The meaning of each option in the command is as follows As shown in the table:
#If you omit all subsequent parameters and directly execute the "env" statement, you can list all environment variables in the system and their assignments:
Common variable query
env | egrep -i "user|mail|pwd|loginname"
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What is env in linux. For more information, please follow other related articles on the PHP Chinese website!