3.2.4 查看当前用户(whoami命令)

whoami命令用于查看当前用户。

语法:


    whoami

范例:查看当前用户


    hbase(main):001:0> whoami
root (auth:SIMPLE)
groups: root, bin, daemon, sys, adm, disk, wheel, floppy, dialout, tape, video