linux查看用户环境变量 linux如何查看某个环境变量?

linux如何查看某个环境变量?查看所有环境变量:env查看指定环境变量的内容:$echo$variable name例如,execute:$echo$homereturn:-bash:/root:i

linux如何查看某个环境变量?

查看所有环境变量:

env

查看指定环境变量的内容:

$echo$variable name

例如,execute:$echo$home

return:

-bash:/root:is a directory//结果是home变量的内容等于/root:This a directory

编辑环境变量:]$export variable name=“content”

这是关于它的