Linux
User Account Info and Login Details
$ id root
uid=0(root) gid=0(root) groups=0(root)
$ groups root
root : root
$ getent passwd root
root:x:0:0:root:/root:/bin/bash
lslogins -u
UID USER PROC PWD-LOCK PWD-DENY LAST-LOGIN GECOS
0 root 74 root
$ who -u
root pts/0 2021-12-24 17:43 . 1560 (8.8.8.8)
w
18:00:19 up 23 min, 1 user, load average: 0.00, 0.02, 0.08
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
user pts/0 88.808.808.888 17:43 1.00s 0.09s 0.01s w
$ last
du -sh