[Tips] linux获取当前登录用户的用户名 whoami 命令,如果要在shell script中将这个结果赋值给变量,则: USER_NAME=`whoami` 注意不能有空格,whoami需要包裹`或者$()