Linux Command Cheat Sheet/Show current user and groups

Display numeric and named identity info.

Section: Permissions Ownership and ACLs

Show current user and groups

bash
bash
id
Explanation

Quickly confirms which groups a process or login shell belongs to.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Permissions Ownership and ACLs
Print current username
Show the effective user name.
OpenIn sheetbashsame section
List permissions
Show permissions and ownership on files.
OpenIn sheetbashsame section
Change permissions with numeric mode
Set rwx permissions numerically.
OpenIn sheetbashsame section
Change permissions recursively
Apply a mode to a directory tree.
OpenIn sheetbashsame section
Change owner and group
Set file owner and group.
OpenIn sheetbashsame section
Change group owner
Set the group of a file or directory.
OpenIn sheetbashsame section