Linux common commands-37: export

The export command is used to display and set system environment variables.

Syntax format: export [parameter]

Common parameters:

Example

 # 列出当前所有变量export # 过滤PATH export | grep PATH # 设置变量ENVI export ENVI=100 # 常见的追加环境变量的值,如PATH export PATH=/home/xugaoxiang/bin:$PATH

This article is reprinted from https://xugaoxiang.com/2022/06/11/linux-cmds-37-export/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment