whoamiとid
whoami
ユーザ名を表示する。
$ whoami
# -> username
id
ユーザのUIDやGIDなどを表示する
$ id
# -> uid=501(username) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)