DEV Community

panfan
panfan

Posted on

Linux命令export

export用于设置或显示环境变量。

使用方法

export TEST="test"
# TEST代表变量名,test代表变量值

export -n TEST
#-n参数代表一出TEST变量
Enter fullscreen mode Exit fullscreen mode

参数:

  • -f  代表[变量名称]中为函数名称。
  • -n  删除指定的变量。变量实际上并未删除,只是不会输出到后续指令的执行环境中。
  • -p  列出所有的 shell 赋予程序的环境变量。

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more