linux - 我的环境变量是什么?

标签 linux bash shell ubuntu

我想在 bash 中找出我的环境变量。它们是否存储在某个地方?

最佳答案

我不确定这是否是您想要的,但请尝试 printenv
这将向您显示所有环境变量。

关于它们的存储位置
Linux: where are environment variables stored?

如何设置Shell环境变量
http://www.codecoffee.com/tipsforlinux/articles/030.html

阅读愉快:-)

关于linux - 我的环境变量是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4431829/

相关文章:

linux - 表格式 Shell 脚本

bash - 对 Bash 重定向的细粒度控制

python - Shell 命令在 python 3 上卡住,但在 python 2 上工作

regex - 将重复的正则表达式模式捕获为一组,在 bash 脚本中使用 sed

linux - 如何从文件中删除所有奇数行但使用单个衬垫保留第 1 行?

bash - 使用 grep 或 sed 替换不匹配模式的单词

linux - 在设置位置参数时使用 - 和 -- 作为要设置的选项之间的区别

java - 执行 linux sh 文件时出现 ArrayIndexOutOfBounds 异常

node.js - 使用 Node.js 应用程序配置 nginx 时出现问题

php - 为后台进程运行 php exec()