문제

Does anybody know the default environment variables in MAC OS X? What is the variable for user's folder?

For example if the path in MAC OS X is "/Users/someuser/Applications" Then what is the variable for the "someuser"?

도움이 되었습니까?

해결책

Just like on other Unix systems, it's $USER and $LOGNAME. And $HOME is the path to the home directory /Users/someuser.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top