linux查看用戶環(huán)境變量 linux如何查看某個(gè)環(huán)境變量?
linux如何查看某個(gè)環(huán)境變量?查看所有環(huán)境變量:env查看指定環(huán)境變量的內(nèi)容:$echo$variable name例如,execute:$echo$homereturn:-bash:/root:i
linux如何查看某個(gè)環(huán)境變量?
查看所有環(huán)境變量:
env
查看指定環(huán)境變量的內(nèi)容:
$echo$variable name
例如,execute:$echo$home
return:
-bash:/root:is a directory//結(jié)果是home變量的內(nèi)容等于/root:This a directory
編輯環(huán)境變量:]$export variable name=“content”
這是關(guān)于它的