[pappy@chmodx]:$ man chown

$ chown

Change file owner and group

DOCUMENTEDPermissionsUbuntu 24.04 LTS baseline
Use care. This command changes file ownership. Recursive changes can affect a large directory tree, so verify the path and intended owner/group before using `-R`.

Synopsis

chown [OPTION]... [OWNER][:[GROUP]] FILE...

What it does

Examples

Change owner
sudo chown alice file.txt
Change owner and group
sudo chown alice:developers project/
Change a directory tree
sudo chown -R alice:developers project/

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.