What is env in linux

青灯夜游
青灯夜游Original
2022-05-09 12:47:198834browse

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.

What is env in linux

#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:

What is env in linux

#If you omit all subsequent parameters and directly execute the "env" statement, you can list all environment variables in the system and their assignments:

What is env in linux

Common variable query

env | egrep -i "user|mail|pwd|loginname"

What is env in linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn