How do I get the name of the active user via the command line in OS X?

前端 未结 12 1598
耶瑟儿~
耶瑟儿~ 2020-12-13 05:27

How do I get the name of the active user via the command line in OS X?

12条回答
  •  别那么骄傲
    2020-12-13 06:14

    getting username in MAC terminal is easy...

    I generally use whoami in terminal...

    For example, in this case, I needed that to install Tomcat Server...

提交回复
热议问题