whoamiPrints the effective user name.
Prints the effective user name — the first question after landing a shell.
sudo apt install coreutilswhoamiPrints the effective user name.
idUser ID, primary group and every supplementary group. Groups like sudo, wheel, docker, lxd or disk often mean a path to root.
id <user>Another user’s IDs and groups.
Example
id alicegroupsJust the group names.
lognameThe user who originally logged in, even after su or sudo.
echo $USER $HOME $SHELLCommon identity environment variables.
Switches to another user (root by default) in a new shell, optionally as a login shell or for a single command.
Reports a snapshot of running processes, with owners, resource usage and full command lines.
Reports free and used disk space on mounted file systems.
Estimates how much space files and directories use — find what is filling a disk.
Shows total, used and available memory and swap.
The shell built-in that lists, searches and re-runs previous commands, and manages the history file.