shell 显示当前用户名称

code

macname@localhost ~ % logname
macname
macname@localhost ~ % 

原文地址:https://www.cnblogs.com/sea-stream/p/14038512.html