## Static method (use this):
## System$getUsername(...)
## Don't use the below:
"getUsername"(static, ...)
character
string.
USER
,
and USERNAME
.
Second, it checks Sys.info()["user"]
for user name details.
Finally, it tries to query the system command whoami
.
*getHostname()
.