Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to query or display environment variables using the setenv command of linux

Shulou Source: shulou.com Published: 2022-06-02 19:50:55 10月16日 Update

This article shows you how to use linux's setenv command to query or display environment variables. There is a certain reference value, friends in need can refer to, hope to help you.

The English full name of the setenv command is "set environment variable". This command is a command that queries or sets environment variables in tsch. You can use this command to set the value of an environment variable in a thread to pass parameters between threads.

Syntax format: setenv [parameters]

Common parameters:

The name of the environment variable to be set by ENVVAR, the value of the environment variable to be set by value

Reference example:

Display environment variables:

[root@linuxcool ~] setenv

Set the environment variable:

[root@linuxcool ~] setenv USER lx138 above is a brief introduction to how to query or display environment variables using linux's setenv command. Of course, you have to use the above differences in detail before you understand it. If you want to know more, welcome to follow the industry information channel!

Tags: Variables environments commands queries parameters references threads different abbreviated between values full names examples that is commonly used articles more friends formats industries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno macOS Shulou Technology MySQL