简体   繁体   English

System.getenv(“SYSTEM”) 返回什么?

[英]What does System.getenv(“SYSTEM”) returns?

yesterday i tried to print all the system environment variables and i saw one named "SYSTEM".昨天我试图打印所有的系统环境变量,我看到一个名为“SYSTEM”的变量。

I never seen this variable so i tried to print it, the result is:我从未见过这个变量,所以我尝试打印它,结果是:

XaD+cVnuAOayI4XQ6c8iVEAxfIHSnPO1bkqP8rrze6IWpG/wufHLs3+tcdOL4z2HVFbmVV1q/IXAE5E6ysGZnRspxUMpt3l5cvLt2kofNi9weo4nFD8mtfmNXkR0Q+dxISt9BkIlA5lwUQil58KBFBxUMvvKkj7d83MHOrZrgG7+oseT4oFH3JkdOFY4IsYgwQk8fwyhDDzdvKn7gy3PiwPsnmhXwf5JLQgzOg39mLWhv5hpQzT/N9NHHjQ1U3DgUirIx+NcZrujDj2fJM1y6g==

What does exactly returns System.getenv("SYSTEM") ?究竟返回什么System.getenv("SYSTEM") Why it returns some kind of encrypted text?为什么它返回某种加密文本?

The System.getenv() function returns a value of an environment variable configured in your operating system. System.getenv() function 返回操作系统中配置的环境变量的值。

https://docs.oracle.com/javase/tutorial/essential/environment/env.html https://docs.oracle.com/javase/tutorial/essential/environment/env.html

For example- if we will create a new environment variable called FooFoo with the value of "Hello World!"例如 - 如果我们将创建一个名为FooFoo的新环境变量,其值为“Hello World!”

export FooFoo="Hello World!"

The following code: System.out.println(System.getenv("FooFoo"));以下代码: System.out.println(System.getenv("FooFoo")); will have the output将有 output

"Hello World!" “你好世界!”

In your scenario- some software you installed has created an environment variable called SYSTEM, and it have the value of the encrypted string that you mentioned.在您的场景中 - 您安装的某些软件创建了一个名为 SYSTEM 的环境变量,它具有您提到的加密字符串的值。

This environment variable is not one of the default windows 10 environment variables此环境变量不是默认的 windows 10 环境变量之一

https://pureinfotech.com/list-environment-variables-windows-10/ https://pureinfotech.com/list-environment-variables-windows-10/

Nor one of the default linux environment variables也不是默认的 linux 环境变量之一

https://www.cyberciti.biz/faq/linux-list-all-environment-variables-env-command/ https://www.cyberciti.biz/faq/linux-list-all-environment-variables-env-command/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM